Skip to content

Commit ad4cc36

Browse files
committed
FIXME:defaults/linuxrc: add zfs atime/relatime/noatime handling
Closes: robbat2#21
1 parent 7ea94b0 commit ad4cc36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

defaults/linuxrc

+7
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,13 @@ do
702702
else
703703
MOUNT_STATE=rw,zfsutil
704704
fi
705+
if [ "$(zfs get -H -o value -s default,local,inherited atime "${REAL_ROOT}")" = 'off' ]
706+
then
707+
MOUNT_STATE+=",noatime"
708+
elif [ "$(zfs get -H -o value -s default,local,inherited relatime "${REAL_ROOT}")" = 'on' ]
709+
then
710+
MOUNT_STATE+=",relatime"
711+
fi
705712
else
706713
MOUNT_STATE=ro
707714
fi

0 commit comments

Comments
 (0)