summaryrefslogtreecommitdiff
path: root/setup-lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-18 20:02:34 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-18 20:02:34 +0100
commit7c06e144ad9a18d7fd7b06346a11a1e2633ee063 (patch)
treeae4e18b9ac98bb05e967bb3aace03f6cba84752e /setup-lbu.in
parent849d495c54c5634ec6dfd1011406018b56f721fd (diff)
downloadalpine-conf-7c06e144ad9a18d7fd7b06346a11a1e2633ee063.zip
setup-lbu: fix UUID= prefix in /etc/fstab
Diffstat (limited to 'setup-lbu.in')
-rw-r--r--setup-lbu.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup-lbu.in b/setup-lbu.in
index 3a942d5..7c3c21e 100644
--- a/setup-lbu.in
+++ b/setup-lbu.in
@@ -97,6 +97,9 @@ set_media() {
echo "$media: Could not find filesystem type" >&2
exit 1
fi
+ if [ -n "$UUID" ]; then
+ UUID="UUID=$UUID"
+ fi
# use LABEL= if it was specifically selected, otherwise use UUID
case "$media" in
LABEL=*|UUID=*) UUID="$media";;