HomeFreeBSD

Remount datasets on soft-reboot

Description

Remount datasets on soft-reboot

The one-shot zfs-mount.service is incorrectly deemed active by
Systemd after a systemctl soft-reboot. As such, soft-rebooting
prevents zfs mount -a from being ran automatically.

This commit makes it so that zfs-mount.service is marked as being
undone by the time umount.target is reached, so that zfs.target then
pulls it in again and gets it restarted after a soft reboot.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: kotauskas <v.toncharov@gmail.com>
Closes #16845

Details

Provenance
kotauskas <v.toncharov@gmail.com>Authored on Dec 13 2024, 9:50 PM
GitHub <noreply@github.com>Committed on Dec 13 2024, 9:50 PM
Parents
rG46e06fededd4: flush: only detect lack of flush support in one place
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG586304ac444f: Remount datasets on soft-reboot (authored by kotauskas <v.toncharov@gmail.com>).Dec 13 2024, 9:50 PM