shimboot/patch_initramfs.sh

16 lines
339 B
Bash
Raw Normal View History

2023-10-02 02:08:31 -04:00
#!/bin/bash
#patch the shim initramfs to add the bootloader
set -e
if [ "$DEBUG" ]; then
set -x
fi
initramfs_path=$(realpath $1)
rm "${initramfs_path}/init" -f
2023-10-02 15:06:06 -04:00
cp bootloader/init.sh "${initramfs_path}/bin/init"
cp bootloader/bootstrap.sh "${initramfs_path}/bin/bootstrap.sh"
find ${initramfs_path}/bin -name "*" -exec chmod +x {} \;