Skip to content
Snippets Groups Projects
Commit d4f3772f authored by Recolic Keghart's avatar Recolic Keghart
Browse files

enhanced

parent 251791fd
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,13 @@ ...@@ -2,7 +2,13 @@
# This is the pre-transaction hook, to force user to check if /boot is mounted. # This is the pre-transaction hook, to force user to check if /boot is mounted.
# If there's no device mounted at /boot, generates an error. # If there's no device mounted at /boot, generates an error.
mount | cut -d ' ' -f 3 | grep '^/boot$' > /dev/null while true; do
mount | cut -d ' ' -f 3 | grep '^/boot$' > /dev/null && break
[[ $warned = 1 ]] || ! echo "Please mount /boot BEFORE upgrading kernel. Waiting for mounting..." >&2 || warned=1
echo -n .
sleep 4
done
exit $? exit $?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment