mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-15 20:50:30 +03:00
7795975681
Correct misplaced `-` is the original backport of #13769. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #13769
13 lines
486 B
SYSTEMD
13 lines
486 B
SYSTEMD
[Unit]
|
|
Description=Snapshot bootfs just before it is mounted
|
|
Requisite=zfs-import.target
|
|
After=zfs-import.target dracut-pre-mount.service
|
|
Before=dracut-mount.service
|
|
DefaultDependencies=no
|
|
ConditionKernelCommandLine=bootfs.snapshot
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=-/bin/sh -c '. /lib/dracut-zfs-lib.sh; decode_root_args || exit; [ "$root" = "zfs:AUTO" ] && root="$BOOTFS"; SNAPNAME="$(getarg bootfs.snapshot)"; exec @sbindir@/zfs snapshot "$root@${SNAPNAME:-%v}"'
|
|
RemainAfterExit=yes
|