xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>
Subject: [OSSTEST PATCH 6/7] ts-debian-fixup: Put "/mnt" in a Perl variable
Date: Tue, 29 Sep 2015 14:37:26 +0100	[thread overview]
Message-ID: <1443533847-16987-7-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1443533847-16987-1-git-send-email-ian.jackson@eu.citrix.com>

No functional change now, but this will allow us to change the
mountpoint.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 ts-debian-fixup |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/ts-debian-fixup b/ts-debian-fixup
index beae049..6d24587 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -50,15 +50,17 @@ sub ether () {
     store_runvar("$gho->{Guest}_tcpcheckport", 22);
 }
 
+our $mountpoint = '/mnt';
+
 sub access () {
     guest_umount_lv($ho, $gho);
     target_cmd_root($ho, <<END);
         set -ex
-        mount /dev/$gho->{Vg}/$gho->{Lv} /mnt
+        mount /dev/$gho->{Vg}/$gho->{Lv} $mountpoint
         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/.
+        mkdir -p $mountpoint/root/.ssh $mountpoint/etc/ssh
+        cp -a /root/.ssh/* $mountpoint/root/.ssh/.
+        cp -a /etc/ssh/ssh_host_*key* $mountpoint/etc/ssh/.
 END
 }
 
@@ -66,7 +68,7 @@ our $extra;
 
 sub console () {
     my $console=
-        target_kernkind_console_inittab($ho,$gho,"/mnt");
+        target_kernkind_console_inittab($ho,$gho,"$mountpoint");
     return unless length $console;
     
     my $xextra= "console=$console earlyprintk=xen";
@@ -97,7 +99,7 @@ sub filesystems () {
         set -ex
         perl -i~ -pe "
             s,^(/dev/)sda(\\\\d+),\\\${1}$rootdev\\\$2,;
-        " /mnt/etc/fstab
+        " $mountpoint/etc/fstab
 END
 }
 
-- 
1.7.10.4

  parent reply	other threads:[~2015-09-29 13:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 13:37 [OSSTEST PATCH 0/7] Fix Debian HVM ssh ECONNREFUSED race Ian Jackson
2015-09-29 13:37 ` [OSSTEST PATCH 1/7] Debian installs: Nobble /etc/network/if-up.d/openssh-server Ian Jackson
2015-09-29 14:07   ` Ian Campbell
2015-09-29 13:37 ` [OSSTEST PATCH 2/7] TestSupport::open_unique_stashfile: Provide a RDWR filehandle Ian Jackson
2015-09-29 14:08   ` Ian Campbell
2015-09-29 13:37 ` [OSSTEST PATCH 3/7] TestSupport: Honour $stdin fh argument to cmd, tcmd and tcmdex Ian Jackson
2015-09-29 14:08   ` Ian Campbell
2015-09-29 13:37 ` [OSSTEST PATCH 4/7] TestSupport: Provide target_cmd_inputfh_root Ian Jackson
2015-09-29 14:09   ` Ian Campbell
2015-09-29 13:37 ` [OSSTEST PATCH 5/7] Debian preseed: Break out debian_overlays Ian Jackson
2015-09-29 14:11   ` Ian Campbell
2015-09-29 13:37 ` Ian Jackson [this message]
2015-09-29 14:11   ` [OSSTEST PATCH 6/7] ts-debian-fixup: Put "/mnt" in a Perl variable Ian Campbell
2015-09-29 13:37 ` [OSSTEST PATCH 7/7] ts-debian-fixup: Install the overlays Ian Jackson
2015-09-29 14:14   ` Ian Campbell
2015-09-29 15:07     ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443533847-16987-7-git-send-email-ian.jackson@eu.citrix.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).