[Lunar-commits] <moonbase-core> systemd: Added a warning for users running with an /usr mountpoint
Stefan Wold
ratler at lunar-linux.org
Thu Jul 12 23:07:05 CEST 2012
commit ccfc5182aad6515e06557e6b954d1c83b0b437be
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Thu, 12 Jul 2012 14:07:05 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/ccfc5182aad6515e06557e6b954d1c83b0b437be
systemd: Added a warning for users running with an /usr mountpoint
---
system/systemd/POST_INSTALL +1/-1
system/systemd/PRE_BUILD +8/-0
2 files changed, 9 insertions (+), 1 deletions (-)
--- a/system/systemd/POST_INSTALL
+++ b/system/systemd/POST_INSTALL
@@ -42,7 +42,7 @@ if egrep -q '^(proc|none|devpts|usbfs|tmpfs)' /etc/fstab; then
fi
if [ -n "$SYSTEMD_ERROR" ]; then
- message "\e[5;31mPress any key to continue..."
+ message "\e[5;31mPress any key to continue...${DEFAULT_COLOR}"
read -n 1
fi
--- a/system/systemd/PRE_BUILD
+++ b/system/systemd/PRE_BUILD
@@ -12,4 +12,12 @@ do
fi
done
+if mountpoint -q /usr; then
+ message "${PROBLEM_COLOR}WARNING: ${MESSAGE_COLOR}You appear to have an /usr partition mounted. If you continue this"
+ message "installation your computer will NOT be able to boot properly. This will be supported soon!${DEFAULT_COLOR}"
+ if ! query "Ignore this warning and continue installation?" n ; then
+ exit 1
+ fi
+fi
+
default_pre_build
More information about the Lunar-commits
mailing list