Déplacement de l'instruction du background grub.

Ajout de la liste blorand et de sa cleg gpg à apt pour les maj.
Ajout de la CA locale.
This commit is contained in:
root
2025-08-24 22:04:06 +02:00
parent bcd8aecbf1
commit be1a1a1cf5
7 changed files with 65 additions and 6 deletions

6
debian/postinst vendored
View File

@@ -5,13 +5,15 @@ set -e
case "$1" in
configure)
if [ -e /usr/sbin/grub-mkconfig ] ; then
GRUBDEFAULT="/etc/default/grub"
GRUBDEFAULT="/etc/default/grub.d/blorand.cfg"
if [ -e "$GRUBDEFAULT" ] ; then
if (grep '^GRUB_BACKGROUND' "$GRUBDEFAULT" > /dev/null 2>&1) ; then
sed -i 's@^GRUB_BACKGROUND.*$@GRUB_BACKGROUND="/usr/share/blorand/blorand.png"@g' "$GRUBDEFAULT"
else
echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT"
fi
else
echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT"
fi
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
fi
@@ -22,7 +24,9 @@ configure)
fi
done
install -Dvm 0644 /usr/share/blorand/BLORAND-CA_Root.crt /usr/local/share/ca-certificates/extra/BLORAND-CA_Root.crt
install -Dvm 0755 /usr/share/blorand/blorand.profile /etc/profile.d/blorand.sh
/usr/sbin/update-ca-certificates
;;