diff options
author | Seblu <seblu@seblu.net> | 2011-03-04 17:22:10 +0100 |
---|---|---|
committer | Seblu <seblu@seblu.net> | 2011-03-16 16:59:55 +0100 |
commit | ca372312062e7843ca69e2edd54b58ab609a69ee (patch) | |
tree | 09da53fc8ad9c592bf0cdade81c4702c653ec617 | |
parent | 823c19d1df22d587bce56a363e371d0e9d269c8d (diff) | |
download | initscripts-ca372312062e7843ca69e2edd54b58ab609a69ee.tar.xz |
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 <seblu@seblu.net>
-rw-r--r-- | rc.conf | 3 | ||||
-rwxr-xr-x | rc.sysinit | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -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" @@ -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 |