From: Frank Brehm Date: Thu, 29 Mar 2018 10:42:31 +0000 (+0200) Subject: Fixing tweak_grub() in bin/postinst X-Git-Tag: 0.1.1~69 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=fac44f16311f071b13cdca235abeac1bc00d0324;p=pixelpark%2Fcreate-vmware-tpl.git Fixing tweak_grub() in bin/postinst --- diff --git a/bin/postinst b/bin/postinst index b432cf8..9bb0108 100644 --- a/bin/postinst +++ b/bin/postinst @@ -264,7 +264,15 @@ tweak_grub() { 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