Commit 07559bc9 authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

tar2fs: clean fstab

Should be done this way in the first place it seems.
parent 2e70a8f8
......@@ -225,6 +225,8 @@ KVERSIONS="$(chroot "$ROOTFS" rpm -qa 'kernel-image*' \
[ -n "$KVERSIONS" ] || fatal "unable to deduce kernel version"
rm -f .origver
# clean fstab
sed -i "/LABEL=ROOT/d" "$ROOTFS/etc/fstab"
# ...target device too
sed -i "s,$LOOPROOT,$ROOTDEV," "$ROOTFS/etc/fstab"
......@@ -256,7 +258,6 @@ 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
......
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