aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-25 13:22:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-25 13:22:03 +0200
commit0ba253ef6926d2f8bf403f9b96ca9120d0022861 (patch)
tree5e2143bce9382dcbb6856ff844968283764f920b /bootstrap
parentb4bd21c722da92de409962d8b0032760bd39b35b (diff)
Configure storage
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap13
1 files changed, 11 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 0d17ba1..d2c2be0 100755
--- a/bootstrap
+++ b/bootstrap
@@ -140,7 +140,7 @@ if [ "$stage" -eq "1" ]; then
#
# - systemd-container seems to be required by host systemd-nspawn.
#
- pkgs="locales,systemd-container"
+ pkgs="locales,klibc-utils,systemd-container"
pkgs+=",linux-image-amd64,irqbalance,pciutils"
@@ -230,6 +230,7 @@ Build OS 0.5.0 (Based on Debian) \n \l
EOF1
cat <<EOF1 >/etc/motd
+
Welcome to Build OS 0.5.0 (https://build2.org)!
EOF1
@@ -382,9 +383,17 @@ fi
#
# To test PXE boot, replace -kernel/-initrd with '-boot n'.
#
+
+if [ ! -e /tmp/buildos-disk ]; then
+ qemu-img create -f raw /tmp/buildos-disk 100M
+fi
+
sudo kvm \
-m 8G \
- -netdev 'tap,id=net0,script=./qemu-ifup' \
-device "e1000,netdev=net0,mac=$macaddr" \
+ -netdev "tap,id=net0,script=./qemu-ifup" \
+ -device "virtio-scsi-pci,id=scsi" \
+ -device "scsi-hd,drive=disk1" \
+ -drive "if=none,id=disk1,file=/tmp/buildos-disk,format=raw" \
-kernel buildos-image -initrd buildos-initrd \
-append "buildos.smtp_relay=build2.org buildos.admin_email=admin@build.org"