make rootfs read-only

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK
2020-11-02 22:22:05 +01:00
parent 79a7be9716
commit fd6ab2ce4c
20 changed files with 47 additions and 535 deletions

View File

@@ -63,7 +63,9 @@ reload_partition_table () {
}
resize_rootfs_filesystem () {
rw
resize2fs ${root_part} >/dev/null 2>&1 || die 10 "cannot resize the root filesystem, aborting"
ro
return 0
}
@@ -160,6 +162,8 @@ notif "8/8 Format share partition"
format_backing_store_partition
notif "First boot setup finished!"
rw
touch /.first_boot
ro
sleep 1
clear_notif