echo
log "Tweaking '${grub_cfg}' ..."
+ echo "Selecting entry in /etc/grub2.cfg ..."
+ awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
+ grub2-set-default 0
+ grub2-editenv list
+
+ echo "Removing quiet from '${grub_cfg}' ..."
sed --in-place=".bak.$( date -r ${grub_cfg} +'%Y-%m-%d_%H:%M:%S' )" -e 's/^\(GRUB_CMDLINE_LINUX=.*\)[ ]quiet\(.*\)/\1\2/' "${grub_cfg}"
+
+ echo "Recreating /boot/grub2/grub.cfg ..."
grub2-mkconfig -o /boot/grub2/grub.cfg
fi