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
369 B
SYSTEMD
15 lines
369 B
SYSTEMD
[Unit]
|
|
Description=Set BOOTFS environment for dracut
|
|
Documentation=man:zpool(8)
|
|
DefaultDependencies=no
|
|
After=zfs-import-cache.service
|
|
After=zfs-import-scan.service
|
|
Before=zfs-import.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/sh -c "exec systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | grep -m1 -v '^-$')"
|
|
|
|
[Install]
|
|
WantedBy=zfs-import.target
|