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
90f78c09
Commit
90f78c09
authored
Dec 14, 2015
by
Natanael Copa
Browse files
setup-disk: only install lvm2 if it will be used
parent
2d7ee0af
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
90f78c09
...
...
@@ -436,8 +436,9 @@ stop_all_raid() {
# install needed programs
init_progs
()
{
local
raidpkg
=
fs
=
fstools
=
local
raidpkg
=
lvmpkg
=
fs
=
fstools
=
[
-n
"
$USE_RAID
"
]
&&
raidpkg
=
"mdadm"
[
-n
"
$USE_LVM
"
]
&&
lvmpkg
=
"lvm2"
for
fs
in
$BOOTFS
$ROOTFS
$VARFS
;
do
# we need load btrfs module early to avoid the error message:
# 'failed to open /dev/btrfs-control'
...
...
@@ -449,7 +450,7 @@ init_progs() {
btrfs
)
fstools
=
"
$fstools
btrfs-progs"
;;
esac
done
apk add
--quiet
sfdisk lvm
2
$raidpkg
syslinux
$fstools
$@
apk add
--quiet
sfdisk
$
lvm
pkg
$raidpkg
syslinux
$fstools
$@
}
show_disk_info
()
{
...
...
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