New review comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/29780#discussion_r703903905 Comment: I also added the following to the end of the kernel (post-install) hook script, which is purely informational and useful: ``` ##### Give some feedback # reread $bootnum and $bootorder after the change bootnum=$(efibootmgr | grep " $label$" | cut -c "5-8") bootorder=$(efibootmgr | grep "^BootOrder: " |cut -c 12-) default=$(efibootmgr | grep "^Boot${bootorder%%,*}" | cut -c 11-) if [ -z "${bootorder##$bootnum*}" ]; then # $bootnum is the first entry in $bootorder echo " Linux kernel ${VERSION} will boot by default" else # new order with $bootnum first neworder=$bootnum,$(echo $bootorder | sed -e "s/,$bootnum//") echo " Linux kernel ${VERSION} in boot entry '$bootnum' will NOT boot by default" echo " Current default is '$default'" #echo " Current boot order is $bootorder" #( IFS="," ; for num in $bootorder ; do # echo -n " " # efibootmgr | grep "^Boot$num" #done ) echo " - run 'efibootmgr -o $neworder' to boot kernel ${VERSION} by default" echo " - run 'efibootmgr -n $bootnum' to boot it next time only" fi ```