set rootfstype in armbianEnv.txt when building non-ext4 rootfs target images (originally removed with https://github.com/armbian/build/pull/1069/)

This commit is contained in:
5kft 2018-09-23 17:58:05 +00:00
parent 1a94e2a257
commit c1530db482

View file

@ -460,6 +460,7 @@ prepare_partitions()
else
echo "rootdev=$rootfs" >> $SDCARD/boot/armbianEnv.txt
fi
echo "rootfstype=$ROOTFS_TYPE" >> $SDCARD/boot/armbianEnv.txt
elif [[ $rootpart != 1 ]]; then
local bootscript_dst=${BOOTSCRIPT##*:}
sed -i 's/mmcblk0p1/mmcblk0p2/' $SDCARD/boot/$bootscript_dst