From 211b579d6c234d78b0d30bd259d1e344d651529c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 24 Aug 2019 21:01:21 +0200 Subject: [PATCH] avoid regenerating existing ssh key --- modules/default.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default.mk b/modules/default.mk index a0e88a2..6b1f08e 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -83,7 +83,7 @@ _rootpass: ${CFGROOT} chroot "$${CFGROOT}" usermod -p "$$(openssl passwd "$${rootpass}")" root ${rootkey}.pub: - ssh-keygen -N '' -f "$${rootkey}" + [ -f "$@" ] || ssh-keygen -N '' -f "$${rootkey}" _rootkey: ${CFGROOT} ${rootkey}.pub mkdir -m 700 "$${CFGROOT}/root/.ssh/" -- 2.39.2