Commit 7702cbce authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: Always add BOOTPART, when ROOTFSTYPE != ехт4

parent 1c56df5f
......@@ -89,15 +89,10 @@ fi
# NB: xfs doesn't have a spare sector for the bootloader
ROOTFSTYPE="${4:-ext4}"
if [ -f "$ROOTFS/boot/extlinux/extlinux.conf" ] && [ "$ROOTFSTYPE" != ext4 ]; then
if [ -n "$EFIPART" ]; then
BOOTPART="2"
ROOTPART="3"
else
BOOTPART="1"
ROOTPART="2"
fi
BOOTFSTYPE="ext4"
if [ "$ROOTFSTYPE" != ext4 ]; then
BOOTPART="$ROOTPART"
ROOTPART="$(($ROOTPART + 1))"
[ -n "$BOOTFSTYPE" ] || BOOTFSTYPE=ext4
fi
PARTTABLE="$7"
......
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