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

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

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