aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--features.d/btrfs.files1
-rwxr-xr-xinitramfs-init.in4
2 files changed, 5 insertions, 0 deletions
diff --git a/features.d/btrfs.files b/features.d/btrfs.files
new file mode 100644
index 0000000..3729b89
--- /dev/null
+++ b/features.d/btrfs.files
@@ -0,0 +1 @@
+/sbin/btrfs
diff --git a/initramfs-init.in b/initramfs-init.in
index be7b1c3..f3a3ee5 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -388,6 +388,10 @@ if [ -n "$KOPT_root" ]; then
nlplug-findfs $cryptopts -p /sbin/mdev ${KOPT_debug_init:+-d} \
$KOPT_root
+ if echo "$KOPT_modules $KOPT_rootfstype" | grep -qw btrfs; then
+ /sbin/btrfs device scan || echo "Failed to scan devices for btrfs filesystem."
+ fi
+
if [ -n "$KOPT_resume" ]; then
echo "Resume from disk"
if [ -e /sys/power/resume ]; then