changes to the initramfs. very specific changes to included kernel modules.
This commit is contained in:
@@ -15,12 +15,16 @@ mkdir -p ./dependencies/initram/lib/modules/
|
||||
echo "installing busybox"
|
||||
cp ./busybox ./dependencies/initram/bin/
|
||||
chmod +x ./dependencies/initram/bin/busybox
|
||||
chmod 4755 ./dependencies/initram/bin/busybox
|
||||
./dependencies/initram/bin/busybox --install -s "./dependencies/initram/bin/"
|
||||
|
||||
cp ./config/init.sh ./dependencies/initram/init
|
||||
chmod +x ./dependencies/initram/init
|
||||
#chmod 4755 ./dependencies/initram/bin/init
|
||||
echo "copying kernel"
|
||||
cp ./dependencies/linux/arch/x86_64/boot/bzImage ./outputs/bzImage.efi
|
||||
cp ./dependencies/linux/arch/x86_64/boot/bzImage ./outputs/bzImage
|
||||
cd ./dependencies/initram/
|
||||
find . -type f -name "*" -exec chmod +x {} +
|
||||
find . -print0 | cpio --null -ov --format=newc | gzip -9 > ../../outputs/initramfs.cpio.gz
|
||||
find ./bin -type f -name "*" -exec chmod +x {} +
|
||||
|
||||
find . -print0 | cpio --null -o --format=newc --owner root:root | zstd -19 > ../../outputs/initramfs.cpio.gz
|
||||
echo "created initramfs."
|
||||
|
||||
Reference in New Issue
Block a user