Correction du postinst pour que l'image de background fonctionne en preseed/late execution

This commit is contained in:
root
2020-04-08 01:12:10 +02:00
parent 7a73a9f4ee
commit bcd8aecbf1

5
debian/postinst vendored
View File

@ -4,7 +4,7 @@ set -e
case "$1" in case "$1" in
configure) configure)
if [ -e /usr/sbin/update-grub2 ] ; then if [ -e /usr/sbin/grub-mkconfig ] ; then
GRUBDEFAULT="/etc/default/grub" GRUBDEFAULT="/etc/default/grub"
if [ -e "$GRUBDEFAULT" ] ; then if [ -e "$GRUBDEFAULT" ] ; then
if (grep '^GRUB_BACKGROUND' "$GRUBDEFAULT" > /dev/null 2>&1) ; 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" echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT"
fi fi
fi fi
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/update-grub2
fi fi
cat /usr/share/blorand/vimrc.blorand | while read line ; do cat /usr/share/blorand/vimrc.blorand | while read line ; do