From 3f4463f1292c8cce441af1bdcd8432480a8384f4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 4 Apr 2019 11:39:35 +0200 Subject: [rootfs-stage32] Fix detecting single digit type MBR partitions --- .../rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions index 2961b4f2..70f36444 100755 --- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions @@ -188,7 +188,7 @@ get_all_with_id () { shift [ -z "$ID" ] && continue [ ${#ID} -eq 1 ] && ID="0?$ID" # passed '7' as argument -- look for 0x7 or 0x07 - if [ ${#ID} -eq 2 ]; then + if [ ${#ID} -le 3 ]; then exp="$exp|ID_PART_ENTRY_(NAME=OpenSLX-ID|TYPE=0x)$ID" else exp="$exp|ID_PART_ENTRY_TYPE=$ID" -- cgit v1.2.3-55-g7522