mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
zfs dracut module should not assume systemd presence
Signed-off-by: Moritz Maxeiner <moritz@ucworks.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4749 Closes #5058
This commit is contained in:
parent
61c7349439
commit
8516203d53
@ -10,6 +10,7 @@ case "${root}" in
|
|||||||
*) return ;;
|
*) return ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if command -v systemctl >/dev/null; then
|
||||||
# If sysroot.mount exists, the initial RAM disk configured
|
# If sysroot.mount exists, the initial RAM disk configured
|
||||||
# it to mount ZFS on root. In that case, we bail early.
|
# it to mount ZFS on root. In that case, we bail early.
|
||||||
loadstate="$(systemctl --system --show -p LoadState sysroot.mount || true)"
|
loadstate="$(systemctl --system --show -p LoadState sysroot.mount || true)"
|
||||||
@ -19,6 +20,7 @@ else
|
|||||||
info "ZFS: sysroot.mount present, delegating root mount to it"
|
info "ZFS: sysroot.mount present, delegating root mount to it"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Delay until all required block devices are present.
|
# Delay until all required block devices are present.
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
Loading…
Reference in New Issue
Block a user