浏览代码

Extra logging when installing mesh

Bob Mottram 8 年前
父节点
当前提交
49051465e7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-image-mesh

+ 2
- 0
src/freedombone-image-mesh 查看文件

@@ -106,6 +106,7 @@ function create_ram_disk {
106 106
     if ! grep -q "ramdisk" /etc/fstab; then
107 107
         mount -t tmpfs -o size=${ramdisk_size_mb}m tmpfs /mnt/ramdisk
108 108
         echo "tmpfs       /mnt/ramdisk tmpfs   nodev,nosuid,noexec,nodiratime,size=${ramdisk_size_mb}M   0 0" >> /etc/fstab
109
+        echo $"${ramdisk_size_mb}M ramdisk created for /tmp" >> $INSTALL_LOG
109 110
     fi
110 111
 }
111 112
 
@@ -113,6 +114,7 @@ function make_root_read_only {
113 114
     if [ ! -d /home/$MY_USERNAME/Desktop ]; then
114 115
         if ! grep 'ro,subvol=@' /etc/fstab; then
115 116
             sed -i 's|subvol=@|ro,subvol=@|g' /etc/fstab
117
+            echo $'Root filesystem set to read only' >> $INSTALL_LOG
116 118
         fi
117 119
     fi
118 120
 }