Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
2d7ee0af
Commit
2d7ee0af
authored
Dec 14, 2015
by
Natanael Copa
Browse files
setup-disk: clean up install of filesystem progs
Do not install e2fsprogs unless it will be used
parent
9ed0b9ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
2d7ee0af
...
...
@@ -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"
;;
esac
done
apk add
--quiet
sfdisk lvm2
$raidpkg
syslinux
$fstools
$@
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment