[arch-projects] [mkinitcpio][PATCH 15/26] mkinitcpio: insist that /dev be mounted
Dave Reisner
d at falconindy.com
Mon Sep 26 21:22:16 EDT 2011
This avoids errors with process substitutions in chroots, among other
things.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
mkinitcpio | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mkinitcpio b/mkinitcpio
index 72e7ec8..5419d9b 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -156,6 +156,9 @@ if [[ -t 2 ]] && (( COLOR )); then
fi
readonly NC BOLD BLUE GREEN RED YELLOW
+# insist that /dev be mounted (important for chroots)
+findmnt /dev &>/dev/null || die "/dev is not mounted"
+
if [[ $BASEDIR ]]; then
# resolve the path. it might be a relative path and/or contain symlinks
if ! pushd "$BASEDIR" &>/dev/null; then
--
1.7.6.4
More information about the arch-projects
mailing list