[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 13/35] d-i: Cope if .ssh already exists (in /target/root/ and also /home/...)



Use mkdir -p in both cases.  Otherwise these late_commands may fail.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 Osstest/Debian.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index dacefb3..987c7c6 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -735,13 +735,13 @@ r=/target/root
 cd \$r
 
 umask 022
-mkdir .ssh
+mkdir -p .ssh
 $preseed_wget -O .ssh/authorized_keys '$authkeys_url'
 $preseed_wget -O .ssh/known_hosts     '$knownhosts_url'
 
 u=osstest
 h=/home/\$u
-mkdir /target\$h/.ssh
+mkdir -p /target\$h/.ssh
 cp .ssh/authorized_keys /target\$h/.ssh
 chroot /target chown -R \$u.\$u \$h/.ssh
 END
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.