diff options
author | William Wilhelm <willat8@gmail.com> | 2023-01-01 10:51:47 +0000 |
---|---|---|
committer | William Wilhelm <willat8@gmail.com> | 2023-01-26 10:35:45 +1100 |
commit | a7fb778415a264a0f40e7580217cbd5616fb0cfe (patch) | |
tree | a1e1cf43db657e6335117232b4df457b028e2ef1 /setup-disk.in | |
parent | fe3f23437a5d8534b2c64a39c430d366de3e6387 (diff) | |
download | alpine-conf-a7fb778415a264a0f40e7580217cbd5616fb0cfe.zip |
setup-disk: NO_DISK_UUID for fstab
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in index 28ef857..258a494 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -44,6 +44,12 @@ _blkid() { # if given device have an UUID display it, otherwise return the device uuid_or_device() { local i= + # NO_DISK_UUID can be set to a list of space-separated devices to avoid using UUIDs + for i in $NO_DISK_UUID; do + if [ "$i" = "$1" ]; then + echo "$1" && return 0 + fi + done case "$1" in /dev/md*) echo "$1" && return 0;; esac |