installer.sh: set 'noatime' for root (/) and /home filesystems configured in /etc/fstab
This commit is contained in:
parent
3c6705af0f
commit
f444cdddef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user