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
|
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
|
||||||
|
Reference in New Issue
Block a user