summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-07 15:59:21 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-07 15:59:21 +0100
commit973c75732b696e39975f5977768d38c2c0aeb77f (patch)
treeb8ef09fdb08647b09b6801c66252a81a75593b4d
parentd4160295f4aad066d879ac5fdcc151d1c4b86e8b (diff)
downloadalpine-conf-973c75732b696e39975f5977768d38c2c0aeb77f.zip
setup-disk: allow force install on unsupported bootfs
-rw-r--r--setup-disk.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 3fd0414..2b75009 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -372,7 +372,10 @@ install_mounted_root() {
mnt_boot="$mnt"/boot
fi
boot_fs=$(find_mount_fs "$mnt_boot")
- supported_boot_fs "$boot_fs" || return 1
+ if ! supported_boot_fs "$boot_fs"; then
+ [ -z "$FORCE_BOOTFS" ] && return 1
+ echo "Continuing at your own risk."
+ fi
# check if our root is on raid so we can feed mkinitfs and
# bootloader conf with the proper kernel module params