2 Description=Rollback bootfs just before it is mounted
3 Requisite=zfs-import.target
4 After=zfs-import.target dracut-pre-mount.service zfs-snapshot-bootfs.service
5 Before=dracut-mount.service sysroot.mount
7 ConditionKernelCommandLine=bootfs.rollback
8 ConditionEnvironment=BOOTFS
12 ExecStart=/bin/sh -c '. /lib/dracut-lib.sh; SNAPNAME="$(getarg bootfs.rollback)"; exec @sbindir@/zfs rollback -Rf "$BOOTFS@${SNAPNAME:-%v}"'