From fd5e899d1d5e801f58175d824c3930e6ad1ca9a8 Mon Sep 17 00:00:00 2001 From: dedalodaelus Date: Mon, 22 Oct 2018 13:29:42 -0300 Subject: [PATCH] - Corrected the f2fs and btrfs emmc write, due to a missing rootfstype key missing on the armbianEnv.txt --- packages/bsp/common/usr/sbin/nand-sata-install | 5 +++++ 1 file changed, 5 insertions(+) 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