From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 7/8] ts-freebsd-install: Pass -s option to kpartx Date: Tue, 6 Oct 2015 13:47:05 +0100 Message-ID: <1444135626-1771-7-git-send-email-ian.campbell@citrix.com> References: <1444135606.5302.145.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444135606.5302.145.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org This is "Sync mode. Don't return until the partitions are created", which seems to be needed in Jessie. The option also exists in Wheezy, according to the manpage. Without this the following mount fails having apparently raced against the creation of the device nodes. Signed-off-by: Ian Campbell --- v2: New patch --- ts-freebsd-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-freebsd-install b/ts-freebsd-install index d1f4bd3..d630f2a 100755 --- a/ts-freebsd-install +++ b/ts-freebsd-install @@ -62,7 +62,7 @@ sub prep () { dd if=$rimagebase.raw of=$gho->{Lvdev} bs=1M rm $rimagebase.raw - kpartx -a $gho->{Lvdev} + kpartx -s -a $gho->{Lvdev} mkdir -p $mnt mount -t ufs -o ufstype=ufs2,rw $gho->{Lvdev}${root_part_nr} $mnt END -- 2.5.3