initializer (338B)
1 #!/bin/sh 2 3 case $1 in 4 prep) 5 mkdir /tmp/host0 6 mount -t 9p -o trans=virtio host0 /tmp/host0 7 cp /tmp/host0/* . 8 ;; 9 teardown) 10 umount /tmp/host0 11 sync 12 poweroff 13 ;; 14 initramfs) 15 mkinitfs -i ./init -o /tmp/host0/initramfs -F "base scsi virtio ext4 9p" 16 cp /media/cdrom/boot/vmlinuz-virt /tmp/host0/ 17 ;; 18 esac