diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-08-06 17:05:57 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-08-06 17:05:57 -0400 |
commit | 536e7ff571614e53702a0f2f8e9e888f8dd87fa5 (patch) | |
tree | ee4e5191c3bfb3d4f0a3d074d66b65d9765f119a /kvm-manager | |
parent | bf4894692467528c2c4d8cf31bcdc1da8aa4c7bd (diff) | |
download | kvm-manager-536e7ff571614e53702a0f2f8e9e888f8dd87fa5.tar.gz kvm-manager-536e7ff571614e53702a0f2f8e9e888f8dd87fa5.tar.bz2 |
try to automate booting to d-i
Diffstat (limited to 'kvm-manager')
-rwxr-xr-x | kvm-manager | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kvm-manager b/kvm-manager index a46f26a..800bf92 100755 --- a/kvm-manager +++ b/kvm-manager @@ -98,6 +98,7 @@ up() { CDISO="$OWNERHOME/vms/$VMNAME/cd.iso" NETBOOT="$OWNERHOME/vms/$VMNAME/netboot" + DEBIAN_INSTALLER="$OWNERHOME/vms/$VMNAME/debian-installer" KERNEL="$OWNERHOME/vms/$VMNAME/kernel" INITRD="$OWNERHOME/vms/$VMNAME/initrd" KVMARGS= @@ -110,6 +111,14 @@ up() { if [ "$CMDLINE" ]; then KERNEL_CMDLINE="$CMDLINE" fi + elif [ -e "$DEBIAN_INSTALLER" ] ; then + # FIXME: this should be generalized to pick the version and + # the architecture -- perhaps an empty $DEBIAN_INSTALLER would + # default to the latest sensible version, but its contents + # could otherwise select the version (and the arch if + # specified) + KVMARGS="-kernel /usr/lib/debian-installer/images/9/amd64/text/debian-installer/amd64/linux -initrd /usr/lib/debian-installer/images/9/amd64/text/debian-installer/amd64/initrd.gz -no-reboot" + KERNEL_CMDLINE="console=ttyS0,115200n8 -- console=ttyS0,115200n8" elif [ -e "$NETBOOT" ] ; then BOOTCHOICE=n elif [ -e "$CDISO" ] && [ -e $(readlink -f "$CDISO") ] ; then |