summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-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