Commit 2d7ee0af authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: clean up install of filesystem progs

Do not install e2fsprogs unless it will be used
parent 9ed0b9ef
......@@ -436,14 +436,17 @@ stop_all_raid() {
# install needed programs
init_progs() {
local raidpkg= fs= fstools="e2fsprogs"
local raidpkg= fs= fstools=
[ -n "$USE_RAID" ] && raidpkg="mdadm"
for fs in $BOOTFS $ROOTFS $VARFS; do
case $fs in
xfs) fstools="$fstools xfsprogs"; modprobe xfs;;
# we need load btrfs module early to avoid the error message:
# 'failed to open /dev/btrfs-control'
btrfs) fstools="$fstools btrfs-progs"; modprobe btrfs;;
modprobe $fs
case $fs in
xfs) fstools="$fstools xfsprogs";;
ext*) fstools="$fstools e2fsprogs";;
btrfs) fstools="$fstools btrfs-progs";;
apk add --quiet sfdisk lvm2 $raidpkg syslinux $fstools $@
Supports Markdown
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