summaryrefslogtreecommitdiffstats
path: root/install/autodetect
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-04 19:08:33 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-05 05:00:25 +0200
commit9e94550348a9bc523b7f31944b8b1806c70eacd9 (patch)
tree0c23afd87a9c798e46859a15d4f0f9e18e5d2f28 /install/autodetect
parent6c3207d3dffac6c45d7b208938646c0088e7a85d (diff)
downloadmkinitcpio-9e94550348a9bc523b7f31944b8b1806c70eacd9.tar.gz
mkinitcpio-9e94550348a9bc523b7f31944b8b1806c70eacd9.tar.xz
autodetect: check for /sys/devices before autodetecting
Oops. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/autodetect')
-rw-r--r--install/autodetect4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/autodetect b/install/autodetect
index 7f22235..69619c0 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -3,13 +3,13 @@
build() {
MODULE_FILE=$TMPDIR/autodetect_modules
- auto_modules | grep -xEv '(ata|ide)_generic' >"$MODULE_FILE"
-
if [[ ! -d /sys/devices ]]; then
error "/sys does not appear to be mounted. Unable to use autodetection"
return 1
fi
+ auto_modules | grep -xEv '(ata|ide)_generic' >"$MODULE_FILE"
+
if ! findmnt -uno fstype "${BASEDIR:-/}" >>"$MODULE_FILE"; then
error "failed to detect root filesystem"
fs_autodetect_failed=1