for creole's zephir2 branch

This commit is contained in:
2019-11-23 08:17:35 +01:00
commit 841643e76e
700 changed files with 68183 additions and 0 deletions

16
upgrade/post_upgrade/99-grub Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
bootdevice=$(mount | awk '/ \/boot / {gsub(/[0-9]/,"",$1);print $1}')
rootdevice=$(mount | awk '/ \/ / {gsub(/[0-9]/,"",$1);print $1}')
if [[ -n "${bootdevice}" ]]
then
grub-install ${bootdevice}
exit $?
elif [[ -n "${rootdevice}" ]]
then
grub-install ${rootdevice}
exit $?
else
echo "Le disque d'installation de grub ne peut pas être déterminé."
exit 127
fi