mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
37086897b0
Add support for http and https to the keylocation properly to allow encryption keys to be fetched from the specified URL. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Issue #9543 Closes #9947 Closes #11956
15 lines
527 B
SYSTEMD
15 lines
527 B
SYSTEMD
[Unit]
|
|
Description=Rollback bootfs just before it is mounted
|
|
Requisite=zfs-import.target
|
|
After=zfs-import.target zfs-snapshot-bootfs.service
|
|
Before=dracut-mount.service
|
|
DefaultDependencies=no
|
|
ConditionKernelCommandLine=bootfs.rollback
|
|
|
|
[Service]
|
|
# ${BOOTFS} should have been set by zfs-env-bootfs.service
|
|
Type=oneshot
|
|
ExecStartPre=/bin/sh -c 'test -n "${BOOTFS}"'
|
|
ExecStart=/bin/sh -c '. /lib/dracut-lib.sh; SNAPNAME="$(getarg bootfs.rollback)"; exec @sbindir@/zfs rollback -Rf "${BOOTFS}@${SNAPNAME:-%v}"'
|
|
RemainAfterExit=yes
|