aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup-disk.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index ea3c590..1cfb8e6 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -448,7 +448,9 @@ init_progs() {
for fs in $BOOTFS $ROOTFS $VARFS; do
# we need load btrfs module early to avoid the error message:
# 'failed to open /dev/btrfs-control'
- modprobe $fs
+ if ! grep -q -w "$fs" /proc/filesystems; then
+ modprobe $fs
+ fi
case $fs in
xfs) fstools="$fstools xfsprogs";;