diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-05 14:15:44 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-05 14:15:44 +0100 |
commit | 6df463ada5052a39b32a443b276b489c431a115f (patch) | |
tree | 2dd7b9972acc7a5fa18c44269ec4c84bbd22be33 | |
parent | f879555a3fc171661f1a756f6cd518e819bbead7 (diff) | |
download | alpine-conf-6df463ada5052a39b32a443b276b489c431a115f.zip |
setup-bootable: use UUID on new USBs
-rw-r--r-- | setup-bootable.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |