summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinitrd.sh20
-rwxr-xr-xqemu.sh6
2 files changed, 22 insertions, 4 deletions
diff --git a/initrd.sh b/initrd.sh
index 5e7ed90..675dcc8 100755
--- a/initrd.sh
+++ b/initrd.sh
@@ -1,4 +1,18 @@
1#!/bin/sh 1#!/bin/sh
2set -ex 2
3cp -f /boot/vmlinuz-$(uname -r) isolinux/live/vmlinuz 3initrd=isolinux/live/initrd.img
4/usr/sbin/mkinitramfs -d initramfs-tools -o isolinux/live/initrd.img $(uname -r) 4vmlinuz=isolinux/live/vmlinuz
5
6conf_dir=initramfs-tools
7
8if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then
9 need_update=1
10elif [ "$(find "$conf_dir" -newer "$initrd" -print -quit)" ]; then
11 need_update=1
12fi
13
14if [ "$need_update" ]; then
15 set -ex
16 cp -f /boot/vmlinuz-$(uname -r) "$vmlinuz"
17 /usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" $(uname -r)
18fi
diff --git a/qemu.sh b/qemu.sh
index 2955c20..5c0abd2 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -1,7 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# img=debian-live-8.4.0-amd64-gnome-desktop.iso 3# img=debian-live-8.4.0-amd64-gnome-desktop.iso
4img=debian-live-8.4.0-amd64-standard.iso 4# img=debian-live-8.4.0-amd64-standard.iso
5img=debian-live-8.4.0-amd64-standard.btrfs.iso
6
7./initrd.sh
8
5sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ 9sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \
6 -vga qxl \ 10 -vga qxl \
7 -net nic,vlan=0,model=virtio \ 11 -net nic,vlan=0,model=virtio \