diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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" |