aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-setup-bootable-use-UUID-on-new-USBs.patch
blob: 82c8a4973630211dd7e296d950d8dbc867a18e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 6df463ada5052a39b32a443b276b489c431a115f Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 5 Nov 2013 14:15:44 +0100
Subject: [PATCH] setup-bootable: use UUID on new USBs

---
 setup-bootable.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup-bootable.in b/setup-bootable.in
index 18e41bf..2df03e6 100644
--- a/setup-bootable.in
+++ b/setup-bootable.in
@@ -256,7 +256,7 @@ for i in $tomove; do
 	mv "$destdir"/.new/$i "$destdir"/ || die "Failed to move $destdir/.new/ to $destdir"
 done
 
-if [ -n "$replace_alpine_dev" ] && [ -n "$UUID" ]; then
+if [ -n "$replace_alpine_dev" -o -z "$upgrade" ] && [ -n "$UUID" ]; then
 	sed -i -e "s/alpine_dev=[^ \t:]\+/alpine_dev=UUID=$UUID/" \
 		"$destdir"/syslinux.cfg
 fi
-- 
1.8.4.2