From bcd8aecbf1c23b6d264888aa12d3e54c30cb6938 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Apr 2020 01:12:10 +0200 Subject: [PATCH] Correction du postinst pour que l'image de background fonctionne en preseed/late execution --- debian/postinst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 14ab54f..4b5f6b0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -4,7 +4,7 @@ set -e case "$1" in configure) - if [ -e /usr/sbin/update-grub2 ] ; then + if [ -e /usr/sbin/grub-mkconfig ] ; then GRUBDEFAULT="/etc/default/grub" if [ -e "$GRUBDEFAULT" ] ; then if (grep '^GRUB_BACKGROUND' "$GRUBDEFAULT" > /dev/null 2>&1) ; then @@ -13,8 +13,7 @@ configure) echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT" fi fi - - /usr/sbin/update-grub2 + /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg fi cat /usr/share/blorand/vimrc.blorand | while read line ; do