diff --git a/packages/bsp/common/usr/sbin/nand-sata-install b/packages/bsp/common/usr/sbin/nand-sata-install index 217e5d166a..7a1a04aeac 100755 --- a/packages/bsp/common/usr/sbin/nand-sata-install +++ b/packages/bsp/common/usr/sbin/nand-sata-install @@ -236,6 +236,11 @@ create_armbian() echo "$emmcbootuuid /media/mmcboot ext4 ${mountopts[ext4]}" >> ${TempDir}/rootfs/etc/fstab echo "/media/mmcboot/boot /boot none bind 0 0" >> ${TempDir}/rootfs/etc/fstab fi + # if the rootfstype is not defined as cmdline argument on armbianEnv.txt + if grep -qE '^rootfstype=.*' ${TempDir}/bootfs/boot/armbianEnv.txt; then + # Add the line of type of the selected rootfstype to the file armbianEnv.txt + echo "rootfstype=$choosen_fs" >> ${TempDir}/bootfs/boot/armbianEnv.txt + fi if [[ $eMMCFilesystemChoosen =~ ^(btrfs|f2fs)$ ]]; then echo "$targetuuid / $choosen_fs ${mountopts[$choosen_fs]}" >> ${TempDir}/rootfs/etc/fstab