From 31cb3ff94dbe624222e09466dc7b31d99dc88595 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 3 Nov 2023 13:01:19 +0100 Subject: [PATCH] avoid crash when /root/.ssh/ exists --- modules/default.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default.mk b/modules/default.mk index fa1d840..efb8358 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -107,7 +107,7 @@ ${rootkey}.pub: [ -f "$@" ] || ssh-keygen -N '' -f "$${rootkey}" _rootkey: ${CFGROOT} ${rootkey}.pub - mkdir -m 700 "$${CFGROOT}/root/.ssh/" + mkdir -pm 700 "$${CFGROOT}/root/.ssh/" cp "$${rootkey}.pub" "$${CFGROOT}/root/.ssh/authorized_keys" _users: ${CFGROOT} -- 2.39.2