summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-04 11:39:35 +0200
committerSimon Rettberg2019-04-04 11:39:35 +0200
commit3f4463f1292c8cce441af1bdcd8432480a8384f4 (patch)
treed8c04b4e52611c109f43484b9d231fc461f66aa6
parent[rootfs-stage32] Explicitly wait for a HDD when using --hdd (diff)
downloadmltk-3f4463f1292c8cce441af1bdcd8432480a8384f4.tar.gz
mltk-3f4463f1292c8cce441af1bdcd8432480a8384f4.tar.xz
mltk-3f4463f1292c8cce441af1bdcd8432480a8384f4.zip
[rootfs-stage32] Fix detecting single digit type MBR partitions
-rwxr-xr-xcore/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions2
1 files changed, 1 insertions, 1 deletions
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"