Advertisement
teknoraver

debian tty install

May 5th, 2015
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. [ $# -eq 2 ] || exec echo "Usage: $0 <install.iso> <disk.img>"
  4.  
  5. root=/tmp/${0##*/}.$$
  6. mkdir $root
  7. sudo mount -r -oloop "$1" $root
  8. kvm -m 512 -no-reboot -nographic -boot d -cdrom "$1" "$2" -kernel $root/install.*/vmlinuz -initrd $root/install.*/initrd.gz -append console=ttyS0
  9. sudo umount $root
  10. rmdir $root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement