Skip to content
Snippets Groups Projects
Commit 5c19f101 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Fix the path to ostree BootLoaderSpec filename


Starting ostree v.2018.7 (commit 9f48e212) the BLS specification has
been changed to 'ostree-$NUM-$OSNAME.conf'.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 987264e6
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment