diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index ffd7f81f..140c5990 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -109,6 +109,14 @@ function create_ram_disk { fi } +function make_root_read_only { + if [ ! -d /home/$MY_USERNAME/Desktop ]; then + if ! grep 'ro,subvol=@' /etc/fstab; then + sed -i 's|subvol=@|ro,subvol=@|g' /etc/fstab + fi + fi +} + function tmp_ram_disk { ramdisk_size_mb=$1 if [ ! -d /tmp ]; then @@ -589,6 +597,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then #setup_tahoelafs setup_ipfs mesh_amnesic + make_root_read_only if [ ! -f $MESH_AMNESIC ]; then rm $MESH_INSTALL_SETUP