Correction du postinst pour que l'image de background fonctionne en preseed/late execution
This commit is contained in:
5
debian/postinst
vendored
5
debian/postinst
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user