From 51d347d35caec995d36d1450cb5bb183318c7fb7 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 20 Oct 2024 23:45:08 +0200 Subject: [PATCH] create subdirs for `--generate-hardware-config` if they did not exist yet --- src/nixos-anywhere.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index d8a01f2d..644ab69a 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -429,6 +429,7 @@ importFacts() { generateHardwareConfig() { local maybeSudo="$maybeSudo" + mkdir -p "$(dirname "$hardwareConfigPath")" case "$hardwareConfigBackend" in nixos-facter) if [[ ${isInstaller} == "y" ]]; then