Skip to content

Commit

Permalink
FIXME:defaults/linuxrc: add zfs atime/relatime/noatime handling
Browse files Browse the repository at this point in the history
Closes: robbat2#21
  • Loading branch information
gyakovlev committed Mar 30, 2019
1 parent 7ea94b0 commit ad4cc36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions defaults/linuxrc
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,13 @@ do
else
MOUNT_STATE=rw,zfsutil
fi
if [ "$(zfs get -H -o value -s default,local,inherited atime "${REAL_ROOT}")" = 'off' ]
then
MOUNT_STATE+=",noatime"
elif [ "$(zfs get -H -o value -s default,local,inherited relatime "${REAL_ROOT}")" = 'on' ]
then
MOUNT_STATE+=",relatime"
fi
else
MOUNT_STATE=ro
fi
Expand Down

0 comments on commit ad4cc36

Please sign in to comment.