diff --git a/scripts/setup-uefi-bootloader.sh b/scripts/setup-uefi-bootloader.sh index 64b1257c05d8c48bc15a7606515fef239857b71c..bab4662d9a97e8e2b826050372ceb28efb518f52 100755 --- a/scripts/setup-uefi-bootloader.sh +++ b/scripts/setup-uefi-bootloader.sh @@ -12,7 +12,7 @@ sysroot=${ROOTDIR} osname=$1 -bootconf=$sysroot/boot/loader/entries/ostree-${osname}-0.conf +bootconf=$sysroot/boot/loader/entries/ostree-1-${osname}.conf if [ ! -f "$bootconf" ]; then echo "OStree setup is not available!" @@ -45,5 +45,5 @@ umount $ostree/etc/machine-id # Copy config, kernel and initrd # Change the name of config to unify with patch added in T4469 rsync -Pav $sysroot/boot/ostree $sysroot/boot/efi/ -cp $sysroot/boot/loader/entries/ostree-${osname}-0.conf $sysroot/boot/efi/loader/entries/ostree-0-1.conf +cp $bootconf $sysroot/boot/efi/loader/entries/ostree-0-1.conf rm -f $sysroot/boot/efi/loader/loader.conf