diff --git a/integration-tests/default.nix b/integration-tests/default.nix index d8d0f4c17..71a924a8c 100644 --- a/integration-tests/default.nix +++ b/integration-tests/default.nix @@ -77,6 +77,8 @@ let deployer_do("cd ~/unicorn; nixops deploy --confirm") deployer_do("cd ~/unicorn; nixops ssh server 'hello | figlet'") + + deployer_do("cd ~/unicorn; nixops check") ''; }); diff --git a/nixops/backends/__init__.py b/nixops/backends/__init__.py index 63bf03c49..09a900bdc 100644 --- a/nixops/backends/__init__.py +++ b/nixops/backends/__init__.py @@ -253,7 +253,12 @@ def _check(self, res): if match: unit = match.group(1) - isSystemMount = unit.startswith("sys-") or unit.startswith("dev-") + + isSystemMount = ( + unit.startswith("sys-") + or unit.startswith("dev-") + or unit == "run-initramfs.mount" + ) isBuiltinMount = unit == "tmp.mount" or unit == "home.mount" if not isSystemMount and not isBuiltinMount: