xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login
@ 2013-12-12 12:36 Dario Faggioli
  2013-12-12 12:36 ` [OSSTest PATCH 1/2] Use `mkdir -p' in a few more places Dario Faggioli
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dario Faggioli @ 2013-12-12 12:36 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

Hi,

The patches in this series fixes two minor but annoting issues already
discussed either here on xen-devel or on IRC.

The first is about OSSTest not creating some directory automatically, the other
about it removing the root password in the host rather than in the guest (while
fixing up a Debian guest install).

Thanks and Regards,
Dario

---

Dario Faggioli (2):
      Use `mkdir -p' in a few more places
      ts-debian-fixup: avoid removing the host root password


 ts-debian-fixup |    1 -
 ts-kernel-build |    2 +-
 ts-xen-build    |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [OSSTest PATCH 1/2] Use `mkdir -p' in a few more places
  2013-12-12 12:36 [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Dario Faggioli
@ 2013-12-12 12:36 ` Dario Faggioli
  2013-12-12 12:37 ` [OSSTest PATCH 2/2] ts-debian-fixup: avoid removing the host root password Dario Faggioli
  2013-12-12 16:27 ` [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Ian Jackson
  2 siblings, 0 replies; 5+ messages in thread
From: Dario Faggioli @ 2013-12-12 12:36 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

to avoid builds to fail because of missing dirs.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
 ts-kernel-build |    2 +-
 ts-xen-build    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ts-kernel-build b/ts-kernel-build
index 478d912..8ccd89c 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -39,7 +39,7 @@ my $archparms = {
 };
 
 sub checkout () {
-    target_cmd($ho, "rm -rf $builddir && mkdir $builddir", 600);
+    target_cmd($ho, "rm -rf $builddir && mkdir -p $builddir", 600);
 
     build_clone($ho, 'xen', $builddir, 'xen-unstable');
 
diff --git a/ts-xen-build b/ts-xen-build
index 74d17f0..77dbbf4 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -39,7 +39,7 @@ sub checkout () {
     $kerns='' unless defined $kerns;
     $kerns =~ s/,/ /g;
 
-    target_cmd($ho, "rm -rf $builddir && mkdir $builddir", 60);
+    target_cmd($ho, "rm -rf $builddir && mkdir -p $builddir", 60);
 
     build_clone($ho, 'xen', $builddir, 'xen-unstable');

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [OSSTest PATCH 2/2] ts-debian-fixup: avoid removing the host root password
  2013-12-12 12:36 [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Dario Faggioli
  2013-12-12 12:36 ` [OSSTest PATCH 1/2] Use `mkdir -p' in a few more places Dario Faggioli
@ 2013-12-12 12:37 ` Dario Faggioli
  2013-12-12 16:27 ` [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Ian Jackson
  2 siblings, 0 replies; 5+ messages in thread
From: Dario Faggioli @ 2013-12-12 12:37 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

for the following reasons:
 - it's the guest's root password that was being targeted,
   the fact that we're killing the host's one is a bug;
 - it's not needed, as a few lines below we copy the rsa
   keys necessary to login without any password being
   prompet.

This has been tested by doing a full
$ ./sg-run-job test-amd64-amd64-xl

and, after that, restarting the guest and (successfully)
ssh-ing there.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
 ts-debian-fixup |    1 -
 1 file changed, 1 deletion(-)

diff --git a/ts-debian-fixup b/ts-debian-fixup
index f001418..66c65a5 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -55,7 +55,6 @@ sub access () {
     target_cmd_root($ho, <<END);
         set -ex
         mount /dev/$gho->{Vg}/$gho->{Lv} /mnt
-        perl -i~ -pe "s/^root:[^:]+:/root::/" /etc/shadow
         mkdir -p /mnt/root/.ssh /mnt/etc/ssh
         cp -a /root/.ssh/* /mnt/root/.ssh/.
         cp -a /etc/ssh/ssh_host_*key* /mnt/etc/ssh/.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login
  2013-12-12 12:36 [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Dario Faggioli
  2013-12-12 12:36 ` [OSSTest PATCH 1/2] Use `mkdir -p' in a few more places Dario Faggioli
  2013-12-12 12:37 ` [OSSTest PATCH 2/2] ts-debian-fixup: avoid removing the host root password Dario Faggioli
@ 2013-12-12 16:27 ` Ian Jackson
  2013-12-12 16:34   ` Dario Faggioli
  2 siblings, 1 reply; 5+ messages in thread
From: Ian Jackson @ 2013-12-12 16:27 UTC (permalink / raw)
  To: Dario Faggioli; +Cc: Ian Campbell, xen-devel

Dario Faggioli writes ("[OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login"):
> The patches in this series fixes two minor but annoting issues already
> discussed either here on xen-devel or on IRC.
> 
> The first is about OSSTest not creating some directory
> automatically, the other about it removing the root password in the
> host rather than in the guest (while fixing up a Debian guest
> install).

Thanks, these two look good.  Can you give me a git branch and I'll
fetch it into my tree and push it into the mill at an appropriate
point ?  (ATM I'm waiting to see how the switch to wheezy goes...)

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login
  2013-12-12 16:27 ` [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Ian Jackson
@ 2013-12-12 16:34   ` Dario Faggioli
  0 siblings, 0 replies; 5+ messages in thread
From: Dario Faggioli @ 2013-12-12 16:34 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ian Campbell, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]

On gio, 2013-12-12 at 16:27 +0000, Ian Jackson wrote:
> Dario Faggioli writes ("[OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login"):
> > The patches in this series fixes two minor but annoting issues already
> > discussed either here on xen-devel or on IRC.
> > 
> > The first is about OSSTest not creating some directory
> > automatically, the other about it removing the root password in the
> > host rather than in the guest (while fixing up a Debian guest
> > install).
> 
> Thanks, these two look good.  Can you give me a git branch and I'll
> fetch it into my tree and push it into the mill at an appropriate
> point ?  (ATM I'm waiting to see how the switch to wheezy goes...)
> 
Right. Here it comes:

 git://xenbits.xen.org/people/dariof/osstest.git misc-fixes

Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-12 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 12:36 [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Dario Faggioli
2013-12-12 12:36 ` [OSSTest PATCH 1/2] Use `mkdir -p' in a few more places Dario Faggioli
2013-12-12 12:37 ` [OSSTest PATCH 2/2] ts-debian-fixup: avoid removing the host root password Dario Faggioli
2013-12-12 16:27 ` [OSSTest PATCH 0/2] Fix (minor) bugs in dir creation and root login Ian Jackson
2013-12-12 16:34   ` Dario Faggioli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).