diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-26 14:57:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-26 15:07:22 +0000 |
commit | 3c563344e98c9ac187d56d2600de0a37b3967373 (patch) | |
tree | dd0cca5884aa3ba2e0126a086ef9dd673dd8b53e | |
parent | d1ea67deddf4acc10792d78648571715388063a3 (diff) | |
download | alpine-conf-3c563344e98c9ac187d56d2600de0a37b3967373.zip |
setup-disk: accept any bootfs with BOOTLOADER=none
Dont be picky if we don't install any bootloader. This is useful for
rootfs on virtiofs for example.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10499
-rw-r--r-- | setup-disk.in | 2 | ||||
-rwxr-xr-x | tests/setup_disk_test | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/setup-disk.in b/setup-disk.in index 90c9c2d..9258df2 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -539,7 +539,7 @@ install_mounted_root() { mnt_boot="$mnt"/boot fi boot_fs=$(find_mount_fs "$mnt_boot") - if ! supported_boot_fs "$boot_fs"; then + if [ "$BOOTLOADER" != none ] && ! supported_boot_fs "$boot_fs"; then [ -z "$FORCE_BOOTFS" ] && return 1 echo "Continuing at your own risk." fi diff --git a/tests/setup_disk_test b/tests/setup_disk_test index 0331700..7418c89 100755 --- a/tests/setup_disk_test +++ b/tests/setup_disk_test @@ -292,8 +292,7 @@ setup_disk_install_mounted_root_bootloader_none_body() { mkdir -p target/boot \ sys/firmware/efi - fake_mount "/dev/vda2 $PWD/target ext4 rw,noatime,data=ordered 0 0" - fake_mount "/dev/vda1 $PWD/target/boot vfat rw,relatime,fmask=0022 0 0" + fake_mount "/dev/vda2 $PWD/target virtiofs rw,noatime,data=ordered 0 0" BOOTLOADER=none atf_check -s exit:0 \ -o not-match:"grub" \ |