From 0ba253ef6926d2f8bf403f9b96ca9120d0022861 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 25 Mar 2017 13:22:03 +0200 Subject: Configure storage --- bootstrap | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bootstrap') 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 </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" -- cgit v1.1