aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.conf3
-rwxr-xr-xrc.sysinit5
2 files changed, 8 insertions, 0 deletions
diff --git a/rc.conf b/rc.conf
index cda204f..d2b0517 100644
--- a/rc.conf
+++ b/rc.conf
@@ -45,6 +45,9 @@ USEMDADM="no"
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
+# Scan for BTRFS volumes at startup
+USEBTRFS="no"
+
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
diff --git a/rc.sysinit b/rc.sysinit
index f2ccdae..bdf0538 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -122,6 +122,11 @@ if [[ $USEDMRAID =~ yes|YES && -x /sbin/dmraid ]]; then
status "Activating FakeRAID arrays" /sbin/dmraid -i -ay
fi
+# BTRFS devices detection
+if [[ $USEBTRFS =~ yes|YES && -x /sbin/btrfs ]]; then
+ status "Activating BTRFS volumes" /sbin/btrfs device scan
+fi
+
activate_vgs
# Set up non-root encrypted partition mappings