feat: introduce init script for initramfs
This commit is contained in:
parent
4e9cc08e39
commit
9fdf6d6a1f
@ -50,12 +50,11 @@ cd busybox-${BUSYBOX_VERSION}
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Create the initramfs
|
# 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
|
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
|
find . | cpio -H newc -o > ../iso/boot/initramfs.cpio
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Install GRUB
|
# Install GRUB
|
||||||
cp config/grub.cfg iso/boot/grub/grub.cfg
|
cp config/grub.cfg iso/boot/grub/grub.cfg
|
||||||
|
|||||||
9
scripts/init.sh
Normal file
9
scripts/init.sh
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user