Skip to content

Commit

Permalink
nixos-modules/host/default: fix system.activationScripts.microvm-upda…
Browse files Browse the repository at this point in the history
…te-check
  • Loading branch information
astro committed Dec 7, 2024
1 parent 53b9019 commit 0308cc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,16 @@ in
for dir in ${stateDir}/*; do
if [ -e $dir/current/share/microvm/virtiofs ] &&
[ ! -e $dir/bin/virtiofsd-run ]; then
[ ! -e $dir/current/bin/virtiofsd-run ]; then
_outdated_microvms="$_outdated_microvms $(basename $dir)"
elif [ -e $dir/current/share/microvm/tap-interfaces ] &&
[ ! -e $dir/bin/tap-up ]; then
[ ! -e $dir/current/bin/tap-up ]; then
_outdated_microvms="$_outdated_microvms $(basename $dir)"
elif [ -e $dir/current/share/microvm/macvtap-interfaces ] &&
[ ! -e $dir/bin/macvtap-up ]; then
[ ! -e $dir/current/bin/macvtap-up ]; then
_outdated_microvms="$_outdated_microvms $(basename $dir)"
elif [ -e $dir/current/share/microvm/pci-devices ] &&
[ ! -e $dir/bin/pci-setup ]; then
[ ! -e $dir/current/bin/pci-setup ]; then
_outdated_microvms="$_outdated_microvms $(basename $dir)"
fi
done
Expand Down

0 comments on commit 0308cc2

Please sign in to comment.