From f444cdddefc9d4caa98b2dbe4e3f6448223af7c2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 30 Jul 2012 16:32:38 +0200 Subject: [PATCH] installer.sh: set 'noatime' for root (/) and /home filesystems configured in /etc/fstab --- installer/installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index 80ee980..118e87c 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -381,9 +381,9 @@ eval `blkid $INSTALL_DEVICE -o udev` [ "$ID_FS_UUID" ] && INSTALL_DEVICE_UUID=$ID_FS_UUID || unset INSTALL_DEVICE_UUID grep -v ^/dev $MOUNTPOINT/etc/fstab | grep -v ^UUID= > $MOUNTPOINT/etc/fstab.new if [ "$INSTALL_DEVICE_UUID" ]; then - echo "UUID=$INSTALL_DEVICE_UUID / $INSTALL_FSTYPE defaults 1 1" >> $MOUNTPOINT/etc/fstab.new + echo "UUID=$INSTALL_DEVICE_UUID / $INSTALL_FSTYPE defaults,noatime 1 1" >> $MOUNTPOINT/etc/fstab.new else - echo "$REMAPPED_INSTALL_DEVICE / $INSTALL_FSTYPE defaults 1 1" >> $MOUNTPOINT/etc/fstab.new + echo "$REMAPPED_INSTALL_DEVICE / $INSTALL_FSTYPE defaults,noatime 1 1" >> $MOUNTPOINT/etc/fstab.new fi if [ "$INSTALL_HOME_DEVICE" ]; then @@ -391,9 +391,9 @@ if [ "$INSTALL_HOME_DEVICE" ]; then [ "$ID_FS_UUID" ] && INSTALL_HOME_DEVICE_UUID=$ID_FS_UUID || unset INSTALL_HOME_DEVICE_UUID [ "$INSTALL_HOME_FORMAT" == "1" ] || INSTALL_HOME_FSTYPE="auto" if [ "$INSTALL_HOME_DEVICE_UUID" ]; then - echo "UUID=$INSTALL_HOME_DEVICE_UUID /home $INSTALL_HOME_FSTYPE defaults 2 2" >> $MOUNTPOINT/etc/fstab.new + echo "UUID=$INSTALL_HOME_DEVICE_UUID /home $INSTALL_HOME_FSTYPE defaults,noatime 2 2" >> $MOUNTPOINT/etc/fstab.new else - echo "$REMAPPED_INSTALL_HOME_DEVICE /home $INSTALL_HOME_FSTYPE defaults 2 2" >> $MOUNTPOINT/etc/fstab.new + echo "$REMAPPED_INSTALL_HOME_DEVICE /home $INSTALL_HOME_FSTYPE defaults,noatime 2 2" >> $MOUNTPOINT/etc/fstab.new fi fi mv $MOUNTPOINT/etc/fstab.new $MOUNTPOINT/etc/fstab