changes to the initramfs. very specific changes to included kernel modules.
This commit is contained in:
@@ -2,4 +2,7 @@
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
disk="./outputs/boot_image.img"
|
||||
qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive format=raw,file=$disk -m 16G -smp 8 -vga none -usb -device usb-tablet --display gtk --device virtio-gpu-pci -enable-kvm -machine type=pc-q35-3.1,accel=kvm,kernel_irqchip=on
|
||||
|
||||
|
||||
qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive if=none,format=raw,file=$disk,id=hd -device virtio-blk-pci,drive=hd -m 16G -smp 4 -vga none --display gtk,gl=off --device virtio-gpu -usb -device usb-tablet -enable-kvm -machine type=pc-q35-3.1
|
||||
#--display gtk,gl=off --device virtio-gpu
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -6,7 +6,7 @@ mkdir -p ./dependencies
|
||||
rootdir=$(dirname "$0")
|
||||
dir=./$(dirname "$0")
|
||||
cd dependencies
|
||||
[[ -d ./linux ]] || git clone --depth 1 https://github.com/torvalds/linux.git ./linux
|
||||
[[ -d ./linux ]] || git clone --depth 5 https://github.com/gregkh/linux.git ./linux
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
echo $PWD
|
||||
|
||||
Reference in New Issue
Block a user