diff --git a/bin/tar2fs b/bin/tar2fs index bb562afe..5ddbb624 100755 --- a/bin/tar2fs +++ b/bin/tar2fs @@ -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)