tar2fs: implement u-boot support

This commit is contained in:
Anton Midyukov 2019-05-07 23:17:55 +07:00 committed by Michael Shigorin
parent 9488b53ece
commit d571ab545e

View File

@ -271,6 +271,13 @@ echo "** end of boot.conf"
popd popd
# for u-boot
if [ "$BOOTLOADER" = "uboot" ]; then
EXTLINUX_CONF="$ROOTFS/boot/extlinux/extlinux.conf"
sed -i "/LABEL=ROOT/d" "$ROOTFS/etc/fstab"
sed -i "s/LABEL=ROOT/$ROOTDEV/g" "$EXTLINUX_CONF"
fi
if [ -x "$ROOTFS"/sbin/lilo ]; then if [ -x "$ROOTFS"/sbin/lilo ]; then
# configure and install bootloader # configure and install bootloader
REGEXP='^.*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$' REGEXP='^.*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$'