summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-08 17:10:26 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-08 17:10:26 +0100
commit2c681c73cf086dc90ee0998be2ccda63b349d28c (patch)
tree5b388da1bcba08dc5da1a93df1d692b07f62181a
parentc6e67582e73a49b15107dfab3bc2273e11b0f9f0 (diff)
downloadalpine-conf-2c681c73cf086dc90ee0998be2ccda63b349d28c.zip
setup-disk: load dm-mod module if needed
-rw-r--r--setup-disk.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index afb985b..e008c3c 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -1420,6 +1420,10 @@ esac
dmesg -n1
+if [ -n "$USE_LVM" ] && ! grep -w -q device-mapper /proc/misc; then
+ modprobe dm-mod
+fi
+
# native disk install
case "$DISK_MODE" in
sys) native_disk_install$USE_LVM $diskdevs;;