diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-08-19 21:13:20 +0200 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2015-08-19 15:27:25 -0400 |
commit | d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c (patch) | |
tree | 8fa98fba4f46944dc60e79f568300aa3bd02ca9d /defaults/initrd.scripts | |
parent | Support compressed modules: both XZ & GZIP. (diff) | |
download | genkernel-d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c.tar.gz genkernel-d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c.tar.bz2 genkernel-d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c.zip |
Support multi-device Btrfs filesystems
This requires running `/sbin/btrfs device` scan during boot, which is
exposed via the new parameter ``dobtrfs''.
Diffstat (limited to 'defaults/initrd.scripts')
-rw-r--r-- | defaults/initrd.scripts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index e05809c..4724b55 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -997,6 +997,16 @@ startVolumes() { bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" fi fi + + if [ "${USE_BTRFS}" = '1' ] + then + if [ -x '/sbin/btrfs' ] + then + /sbin/btrfs device scan + else + bad_msg "btrfs not found: skipping btrfs device scanning!" + fi + fi if [ "${USE_ZFS}" = '1' ] then |