Commit d571ab54 authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

tar2fs: implement u-boot support

parent 9488b53e
......@@ -271,6 +271,13 @@ echo "** end of boot.conf"
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
# configure and install bootloader
REGEXP='^.*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$'
......
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