simplify case
This commit is contained in:
parent
07edd6a6c2
commit
3f2cd7cca5
20
init
20
init
@ -58,21 +58,11 @@ setup_udev() {
|
||||
|
||||
findfs_sh() {
|
||||
case "${1%%=*}" in
|
||||
LABEL)
|
||||
device="/dev/disk/by-label/${1##*=}"
|
||||
;;
|
||||
UUID)
|
||||
device="/dev/disk/by-uuid/${1##*=}"
|
||||
;;
|
||||
PARTUUID)
|
||||
device="/dev/disk/by-partuuid/${1##*=}"
|
||||
;;
|
||||
/dev/*)
|
||||
device="$1"
|
||||
;;
|
||||
*)
|
||||
panic "findfs option broken"
|
||||
;;
|
||||
LABEL) device="/dev/disk/by-label/${1##*=}" ;;
|
||||
UUID) device="/dev/disk/by-uuid/${1##*=}" ;;
|
||||
PARTUUID) device="/dev/disk/by-partuuid/${1##*=}" ;;
|
||||
/dev/*) device="$1" ;;
|
||||
*) panic "findfs option broken" ;;
|
||||
esac
|
||||
|
||||
# avoid race condition
|
||||
|
Loading…
x
Reference in New Issue
Block a user