mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user