summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-01-17 11:31:10 +0100
committerJuan RP <xtraeme@gmail.com>2015-01-17 11:31:10 +0100
commit1c1251c50643585128525158dd94b7ad3be8a661 (patch)
tree89abc37388da95507044e140157a71e720bdd0f9
parent289592a0f65ae9673bf3ad42d9fa7efbcbdcd319 (diff)
downloadhrmpf-1c1251c50643585128525158dd94b7ad3be8a661.tar.gz
hrmpf-1c1251c50643585128525158dd94b7ad3be8a661.tar.xz
hrmpf-1c1251c50643585128525158dd94b7ad3be8a661.zip
mkimage: disable fsck on rootfs if it's f2fs; it does not work in the rpi.
-rw-r--r--mkimage.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index ded9b7d..cc0c57a 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -167,7 +167,12 @@ tar xfp $ROOTFS_TARBALL -C $ROOTFSDIR
 
 BOOT_UUID=$(blkid -o value -s UUID ${LOOPDEV}p1)
 ROOT_UUID=$(blkid -o value -s UUID ${LOOPDEV}p2)
-echo "UUID=$ROOT_UUID / $ROOT_FSTYPE defaults 0 1" >> ${ROOTFSDIR}/etc/fstab
+
+fspassno="1"
+if [ "$ROOT_FSTYPE" = "f2fs" ]; then
+    fspassno="0"
+fi
+echo "UUID=$ROOT_UUID / $ROOT_FSTYPE defaults 0 ${fspassno}" >> ${ROOTFSDIR}/etc/fstab
 echo "UUID=$BOOT_UUID /boot $BOOT_FSTYPE defaults${fstab_args} 0 2" >> ${ROOTFSDIR}/etc/fstab
 
 if [ -s ${ROOTFSDIR}/boot/cmdline.txt ]; then