JustOS/comp_run_iso.sh

16 lines
505 B
Bash
Executable File

back=$(pwd)
cd progs
# Add all files exclude `src`
find . -path "./src" -prune -o -print0 | cpio --null -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