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
|
|
|
|
|
2023-10-02 15:17:59 -04:00
|
|
|
patch_initramfs() {
|
2023-10-07 00:28:40 -04:00
|
|
|
local initramfs_path=$(realpath $1)
|
2023-10-02 02:08:31 -04:00
|
|
|
|
2023-10-02 15:17:59 -04:00
|
|
|
rm "${initramfs_path}/init" -f
|
|
|
|
cp -r bootloader/* "${initramfs_path}/"
|
2023-10-02 15:06:06 -04:00
|
|
|
|
2023-10-02 15:17:59 -04:00
|
|
|
find ${initramfs_path}/bin -name "*" -exec chmod +x {} \;
|
|
|
|
}
|