allow setting root option to pseudofs. fixes #16

This commit is contained in:
illiliti 2020-09-10 19:41:12 +03:00
parent cab221b1c9
commit 4f94d6e40c

4
init
View File

@ -20,10 +20,12 @@ resolve_device()
{ {
count=0; device="$1" count=0; device="$1"
case "${device%%=*}" in /dev/*) ;; case "${device%%=*}" in
UUID) device="/dev/disk/by-uuid/${device#*=}" ;; UUID) device="/dev/disk/by-uuid/${device#*=}" ;;
LABEL) device="/dev/disk/by-label/${device#*=}" ;; LABEL) device="/dev/disk/by-label/${device#*=}" ;;
PARTUUID) device="/dev/disk/by-partuuid/${device#*=}" ;; PARTUUID) device="/dev/disk/by-partuuid/${device#*=}" ;;
/dev/*) ;;
*) return 0 ;;
esac esac
# prevent race condition # prevent race condition