Commit 2218e13c authored by Natanael Copa's avatar Natanael Copa

setup-disk: only load filesystem module if needed

The filesystem may be compiled into the kernel
parent 026d3b53
......@@ -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";;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment