This commit is contained in:
fewtarius 2022-10-02 06:43:13 -04:00
parent 9a687a82d7
commit 31c614b70a
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -59,11 +59,9 @@ CONFS=$SYSTEM_ROOT/usr/share/bootloader/extlinux/*.conf
for all_conf in $CONFS; do
conf="$(basename ${all_conf})"
echo "Updating ${conf}..."
DTB=$(awk '/FDT/ {print $2}' $SYSTEM_ROOT/extlinux/extlinux.conf)
cp -p $SYSTEM_ROOT/usr/share/bootloader/extlinux/${conf} $BOOT_ROOT/extlinux/${conf} &>/dev/null
sed -e "s/@BOOT_UUID@/$BOOT_UUID/" \
-e "s/@DISK_UUID@/$DISK_UUID/" \
-e "s#FDT.*\$#FDT ${DTB}#g" \
-i $BOOT_ROOT/extlinux/${conf}
done