diff --git a/build.bash b/build.bash index 6061b75..65fcb78 100755 --- a/build.bash +++ b/build.bash @@ -50,12 +50,11 @@ cd busybox-${BUSYBOX_VERSION} cd .. # Create the initramfs -sudo mount -t proc /proc initramfs/proc -sudo mount -t sysfs /sys initramfs/sys -sudo mount -o bind /dev initramfs/dev -sudo mount -o bind /dev/pts initramfs/dev/pts cd initramfs + rm linuxrc # We'll be using a init sciprt instead + cp config/initramfs.sh init find . | cpio -H newc -o > ../iso/boot/initramfs.cpio +cd .. # Install GRUB cp config/grub.cfg iso/boot/grub/grub.cfg diff --git a/scripts/init.sh b/scripts/init.sh new file mode 100644 index 0000000..ca2c41d --- /dev/null +++ b/scripts/init.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Disable Kernel Messages +dmesg -n 1 + +# Mount the file system +mount -t devtmpfs none /dev +mount -t proc none /dev +mount -t sysfs none /sys \ No newline at end of file