15 lines
439 B
Bash
Executable File
15 lines
439 B
Bash
Executable File
back=$(pwd)
|
|
|
|
cd progs
|
|
cat files | cpio -H newc -o > init.cpio
|
|
cd $back
|
|
|
|
rm -rf linux-*/arch/x86/boot/image.iso
|
|
cd linux-*
|
|
#make isoimage FDARGS="initrd=/init.cpio" FDINITRD="../progs/init.cpio"
|
|
# \/ \/ Turn off system messages (very annoying)
|
|
make isoimage FDARGS="initrd=/init.cpio loglevel=0 quiet" FDINITRD="../progs/init.cpio"
|
|
qemu-system-x86_64 -cdrom arch/x86/boot/image.iso
|
|
|
|
cd $back
|