Skip to content

Commit f5f5a2d

Browse files
outofforestbehlendorf
authored andcommitted
Rollback before zfs root is mounted
On my machines I observe random failures caused by rollback happening after zfs root is mounted. I've observed two types of failures: - zfs-rollback-bootfs.service fails saying that rollback must be done just before mounting the dataset - boot process fails and rescue console is entered. After making this modification and testing it for couple of days none of those problems have been observed anymore. I don't know if `dracut-mount.service` is still needed in the `After` directive. Maybe someone else is able to address this? Reviewed-by: Gregory Bartholomew <[email protected]> Signed-off-by: Wojciech Małota-Wójcik <[email protected]> Closes #15025
1 parent 83b0967 commit f5f5a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/dracut/90zfs/zfs-rollback-bootfs.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description=Rollback bootfs just before it is mounted
33
Requisite=zfs-import.target
44
After=zfs-import.target dracut-pre-mount.service zfs-snapshot-bootfs.service
5-
Before=dracut-mount.service
5+
Before=dracut-mount.service sysroot.mount
66
DefaultDependencies=no
77
ConditionKernelCommandLine=bootfs.rollback
88
ConditionEnvironment=BOOTFS

0 commit comments

Comments
 (0)