aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-25 09:01:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-25 09:01:25 +0200
commitb4bd21c722da92de409962d8b0032760bd39b35b (patch)
tree2e89b27c5d314a2e9c8a72efc4edd9dbe32d512b /bootstrap
parent9c34b8d3c45b2bbc1098b2ea0e002e4b5d5c4f86 (diff)
Configure email
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap9
1 files changed, 5 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index 240f193..0d17ba1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -147,7 +147,7 @@ if [ "$stage" -eq "1" ]; then
pkgs+=",hdparm,btrfs-progs"
pkgs+=",net-tools,iproute2,iptables,isc-dhcp-client"
- pkgs+=",ifupdown,bridge-utils,dnsmasq,ntp"
+ pkgs+=",ifupdown,bridge-utils,dnsmasq,ntp,postfix"
pkgs+=",iputils-ping,wget,curl"
pkgs+=",less"
@@ -240,11 +240,11 @@ chpasswd <<<'root:$passwd'
# Enable IPv4 forwarding (used for private bridge NAT).
#
-sed -i 's/^# *\(net.ipv4.ip_forward\).*/\1=1/' /etc/sysctl.conf
+sed -i -e 's/^# *\(net.ipv4.ip_forward\).*/\1=1/' /etc/sysctl.conf
# Setup locale. We only support en_US.UTF-8.
#
-sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
+sed -i -e 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
locale-gen --purge
cat <<EOF1 >/etc/default/locale
@@ -386,4 +386,5 @@ sudo kvm \
-m 8G \
-netdev 'tap,id=net0,script=./qemu-ifup' \
-device "e1000,netdev=net0,mac=$macaddr" \
- -kernel buildos-image -initrd buildos-initrd
+ -kernel buildos-image -initrd buildos-initrd \
+ -append "buildos.smtp_relay=build2.org buildos.admin_email=admin@build.org"