summaryrefslogtreecommitdiffstats
path: root/modules.d/95rootfs-block/parse-block.sh
blob: 9c4357e627f279ff6a0cc7c0fa654b43ea520f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

case "${root#block:}" in
    LABEL=* | UUID=* | PARTUUID=* | PARTLABEL=*)
        root="block:$(label_uuid_to_dev "$root")"
        rootok=1
        ;;
    /dev/*)
        root="block:${root#block:}"
        # shellcheck disable=SC2034
        rootok=1
        ;;
esac

[ "${root%%:*}" = "block" ] && wait_for_dev "${root#block:}"