diff options
author | Alexander Bakker <ab@alexbakker.me> | 2019-08-23 17:47:09 +0200 |
---|---|---|
committer | Alexander Bakker <ab@alexbakker.me> | 2019-08-23 17:52:12 +0200 |
commit | d20022018e0b0c0e1770c62f25c29b339e59d252 (patch) | |
tree | 6c6c01337fba378d1229fd295194bd680562b0d5 /pkgs/development/libraries/libvirt | |
parent | a4083fb4551ce6dda68ac684a2ca951d2fa3ab72 (diff) | |
download | nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar.gz nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar.bz2 nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar.lz nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar.xz nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.tar.zst nixpkgs-d20022018e0b0c0e1770c62f25c29b339e59d252.zip |
libvirtd: add onBoot option
This adds a new ``onBoot`` option that allows specifying the action taken on guests when the host boots. Specifying "start" ensures all guests that were running prior to shutdown are started, regardless of their autostart settings. Specifying "ignore" will make libvirtd ignore such guests. Any guest marked as autostart will still be automatically started by libvirtd.
Diffstat (limited to 'pkgs/development/libraries/libvirt')
-rw-r--r-- | pkgs/development/libraries/libvirt/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index d8446351945..125259a6bee 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -129,6 +129,7 @@ in stdenv.mkDerivation rec { binPath = [ iptables iproute pmutils numad numactl bridge-utils dmidecode dnsmasq ebtables ] ++ optionals enableIscsi [ openiscsi ]; in '' substituteInPlace $out/libexec/libvirt-guests.sh \ + --replace 'ON_BOOT=start' 'ON_BOOT=''${ON_BOOT:-start}' \ --replace 'ON_SHUTDOWN=suspend' 'ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}' \ --replace "$out/bin" '${gettext}/bin' \ --replace 'lock/subsys' 'lock' \ |