diff --git a/live/config-cdroot/fix_bootconfig.aarch64 b/live/config-cdroot/fix_bootconfig.aarch64 index 12d3056f97..f53a3afd68 100755 --- a/live/config-cdroot/fix_bootconfig.aarch64 +++ b/live/config-cdroot/fix_bootconfig.aarch64 @@ -19,11 +19,21 @@ fi # but that's not the case. test -f $dst/.profile && . $dst/.profile +arch=`uname -m` +profile=$(echo "$kiwi_profiles" | tr "-" " ") +label="$profile ($arch)" + +if [ -d "$dst/boot/grub2/themes/SLE" ]; then + theme="SLE" +else + theme="openSUSE" +end + # # Create grub.cfg # cat >$dst/boot/grub2/grub.cfg <$dst/boot/grub2/grub.cfg <$dst/boot/grub2/grub.cfg < + +- Use better ISO Volume ID labels (bsc#1236401) +- Improve also the boot menu labels +- Use the graphical boot menu also in SLE +- Added UEFI firmware settings boot menu option + ------------------------------------------------------------------- Tue Feb 4 13:25:35 UTC 2025 - Ladislav Slezák diff --git a/live/src/agama-installer.kiwi b/live/src/agama-installer.kiwi index 4350da69b2..e21daff199 100644 --- a/live/src/agama-installer.kiwi +++ b/live/src/agama-installer.kiwi @@ -9,11 +9,14 @@ Agama Live ISO - + + + - - - + + + + 11.0.0 @@ -26,24 +29,25 @@ bgrt openSUSE - - + + + - - + + - - + + - + - + true @@ -55,8 +59,8 @@ 3000 - - + + true @@ -68,8 +72,8 @@ 1900 - - + + true @@ -88,7 +92,7 @@ - + @@ -162,7 +166,7 @@ - + @@ -182,7 +186,7 @@ - + @@ -197,14 +201,14 @@ - + - + diff --git a/live/src/config.sh b/live/src/config.sh index 607fe25094..c68c27e4da 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -72,8 +72,9 @@ systemctl disable YaST2-Firstboot.service systemctl disable YaST2-Second-Stage.service ### setup dracut for live system -label=${kiwi_install_volid:-$kiwi_iname} arch=$(uname -m) +# keep in sync with ISO Volume ID set in the fix_bootconfig script +label="Install-$kiwi_profiles-$arch" echo "Setting default live root: live:LABEL=$label" mkdir /etc/cmdline.d diff --git a/live/src/fix_bootconfig b/live/src/fix_bootconfig index 26357f7c25..77ec7b6416 100644 --- a/live/src/fix_bootconfig +++ b/live/src/fix_bootconfig @@ -15,7 +15,6 @@ # set -ex - dst=${1#iso:} # KIWI config @@ -27,11 +26,6 @@ fi arch=`uname -m` -# removing live root setting from command line - it's in /etc/cmdline.d instead -if [ -f $dst/boot/grub2/grub.cfg ] ; then - sed -i -E -e 's/\s+root=\S+//' -e 's/\s+rd.live\.image//' $dst/boot/grub2/grub.cfg -fi - bootfix=$dst/fix_bootconfig.$arch if [ -f $bootfix ] ; then echo "bootconfig script found: \"$bootfix\"" @@ -55,22 +49,14 @@ for i in "\$@" ; do export iso="\$i" continue fi - if [ -n "\$volid_opt" ] ; then - volid_opt= - export volid="\$i" - continue - fi if [ "\$i" = "-outdev" ] ; then iso_opt=1 continue fi - if [ "\$i" = "-volid" ] ; then - volid_opt=1 - continue - fi done -volid=${kiwi_install_volid:-$kiwi_iname} +# keep in sync with ISO Volume ID set in the config.sh script +volid="Install-$kiwi_profiles-$arch" [ -x $bootfix ] && $bootfix $dst rm -f $dst/fix_bootconfig.* $dst/.profile @@ -87,6 +73,7 @@ case $arch in ;; *) /usr/bin/xorriso "\$@" -volid "\$volid" + err=\$? esac exit \$err