[DEFCONFIG/BOARD] Fix permissions, mount rootfs read-only, create swap in firstboot (#66)

* Fix permissions

* Enable swap in firstboot, change btrfs commit interval to 5s
This commit is contained in:
tiopex
2023-12-14 23:06:39 +01:00
committed by GitHub
parent 130d2be1f3
commit bb7b7e03eb
6 changed files with 9 additions and 6 deletions

View File

@@ -497,6 +497,11 @@ if (dialog --clear --ok-label NO --cancel-label YES --stdout --title " License
console_unknown_func
safe_poweroff_func
fi
# Format swap parition
/sbin/mkswap /dev/mmcblk0p3
/sbin/swapon /dev/mmcblk0p3
mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG}
#grep all partitions current size
@@ -569,9 +574,6 @@ elif $MIYOO_CONFIG; then
fi
mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG}
echo "fix permsissions" | tee -a ${LOG}
chmod -R +x /mnt/ | tee -a ${LOG}
sync
echo "firstboot script finished." | tee -a ${LOG}
touch ${HOME}/firstboot.completed