refactor /boot-not-mounted detection to use util-linux tools
This commit is contained in:
parent
f086bcb894
commit
782389f518
@ -44,11 +44,9 @@ post_upgrade() {
|
|||||||
echo ">>>"
|
echo ">>>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then
|
if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
|
||||||
if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then
|
echo "WARNING: /boot appears to be a separate partition but is not mounted."
|
||||||
echo "WARNING: /boot appears to be a separate partition but is not mounted."
|
echo " You probably just broke your system. Congratulations."
|
||||||
echo " You probably just broke your system. Congratulations."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# updating module dependencies
|
# updating module dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user