Explicitly specify the subsystem for /dev/vboxguest
Otherwise systemd gets confused and forgets about device units after
reloading.
https://github.com/NixOS/nixops/issues/391
https://github.com/systemd/systemd/issues/3423
commit7c19b395ebb8e41d814c64970c3b70ef6377a55b
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateFri 3 Jun 2016, 00:30 (10 years ago)
parentb05f991
nixos/modules/virtualisation/virtualbox-guest.nix+1−1
@@ -77,7 +77,7 @@ in
7777 KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666"
7878
7979 # Allow systemd dependencies on vboxguest.
80− KERNEL=="vboxguest", TAG+="systemd"
80+ SUBSYSTEM=="misc", KERNEL=="vboxguest", TAG+="systemd"
8181 '';
8282 };
8383