Commit b07db070 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: Set UUID in extlinux.conf, if exist

extlinux.conf is not tied to the u-boot bootloader and always needed replace Label with the UUID if the file exist.
parent 576a58d1
......@@ -360,11 +360,13 @@ popd
[ -f "$ROOTFS/boot/efi/cmdline.txt" ] &&
sed -i "s/LABEL=ROOT/$ROOTDEV/" "$ROOTFS/boot/efi/cmdline.txt"
# Update extlinux.conf
[ -f "$ROOTFS/boot/extlinux/extlinux.conf" ] &&
sed -i "s/LABEL=ROOT/$ROOTDEV/g" "$ROOTFS/boot/extlinux/extlinux.conf"
# Setup bootloader
case "$BOOTLOADER" in
uboot)
EXTLINUX_CONF="$ROOTFS/boot/extlinux/extlinux.conf"
sed -i "s/LABEL=ROOT/$ROOTDEV/g" "$EXTLINUX_CONF"
parting set "$ROOTPART" boot on
;;
lilo)
......
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