diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-22 16:03:48 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-22 18:50:58 -0400 |
commit | f24016632e13ebd3ec356bdf0ef9c599f55b2100 (patch) | |
tree | 08b61f5c32fff1326b7cf10f12e14ea97b7f57bf /qemu.sh | |
parent | 59df1261e0dc123c22dde588ced5c3abbf8300ca (diff) |
qemu will boot layered-seed iso
Diffstat (limited to 'qemu.sh')
-rwxr-xr-x | qemu.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,8 +1,10 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # img=debian-live-8.4.0-amd64-gnome-desktop.iso | 3 | # iso=debian-live-8.4.0-amd64-gnome-desktop.iso |
4 | # img=debian-live-8.4.0-amd64-standard.iso | 4 | # iso=debian-live-8.4.0-amd64-standard.iso |
5 | img=debian-live-8.4.0-amd64-standard.btrfs.iso | 5 | iso=debian-live-8.4.0-amd64-standard.btrfs.iso |
6 | disk=${iso%.iso}.disk | ||
7 | iso=${iso%.iso}.layered.iso | ||
6 | 8 | ||
7 | ./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; }; | 9 | ./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; }; |
8 | 10 | ||
@@ -18,6 +20,6 @@ sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ | |||
18 | -net nic,vlan=0,model=virtio \ | 20 | -net nic,vlan=0,model=virtio \ |
19 | -net "$NET" \ | 21 | -net "$NET" \ |
20 | -rtc base=localtime \ | 22 | -rtc base=localtime \ |
21 | -cdrom "$img" \ | 23 | -cdrom "$iso" \ |
22 | -hda "${img%.iso}.disk" \ | 24 | -hda "$disk" \ |
23 | -initrd "$initrd" -kernel "$kernel" -append "$kcmdline" | 25 | -initrd "$initrd" -kernel "$kernel" -append "$kcmdline" |