Commit 6df463ad authored by Natanael Copa's avatar Natanael Copa

setup-bootable: use UUID on new USBs

parent f879555a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment