From ca372312062e7843ca69e2edd54b58ab609a69ee Mon Sep 17 00:00:00 2001 From: Seblu Date: Fri, 4 Mar 2011 17:22:10 +0100 Subject: Add BTRFS support in initscripts Use btrfs instead of btrfsctl. See: https://btrfs.wiki.kernel.org/index.php/FAQ#How_do_I_do....3F Close FS#19792 Signed-off-by: Seblu --- rc.conf | 3 +++ rc.sysinit | 5 +++++ 2 files changed, 8 insertions(+) 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 -- cgit v1.2.3