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

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'
if ! grep -q -w "$fs" /proc/filesystems; then
modprobe $fs
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