Another hack to trace problem in is_root_mounted under Koji.
This commit is contained in:
parent
74e59b750e
commit
2de6eb51f0
@ -0,0 +1,25 @@
|
||||
From 529d2f57621a3a525759ca9c09f605f2f2f1ae66 Mon Sep 17 00:00:00 2001
|
||||
From: Richard W.M. Jones <rjones@redhat.com>
|
||||
Date: Tue, 1 Feb 2011 13:34:20 +0000
|
||||
Subject: [PATCH] hack: Allow time for /etc/mtab to be updated, print contents.
|
||||
|
||||
---
|
||||
images/guest-aux/make-windows-img.sh | 2 ++
|
||||
1 files changed, 2 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/images/guest-aux/make-windows-img.sh b/images/guest-aux/make-windows-img.sh
|
||||
index 5a0cd6d..ee464ac 100755
|
||||
--- a/images/guest-aux/make-windows-img.sh
|
||||
+++ b/images/guest-aux/make-windows-img.sh
|
||||
@@ -39,6 +39,8 @@ mkfs ntfs /dev/sda2
|
||||
|
||||
# Enough to fool inspection API.
|
||||
mount-options "" /dev/sda2 /
|
||||
+sleep 5
|
||||
+debug sh "cat /etc/mtab"
|
||||
mkdir-p /Windows/System32/Config
|
||||
|
||||
upload guest-aux/windows-software /Windows/System32/Config/SOFTWARE
|
||||
--
|
||||
1.7.3.5
|
||||
|
@ -1,34 +0,0 @@
|
||||
From 4d6323cb948768dfd42d48f960baa8cb41c00a36 Mon Sep 17 00:00:00 2001
|
||||
From: Richard W.M. Jones <rjones@redhat.com>
|
||||
Date: Tue, 1 Feb 2011 12:28:51 +0000
|
||||
Subject: [PATCH] hack: print /etc/mtab in is_root_mounted test.
|
||||
|
||||
---
|
||||
daemon/mount.c | 4 ++++
|
||||
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/daemon/mount.c b/daemon/mount.c
|
||||
index c584f81..2b5433b 100644
|
||||
--- a/daemon/mount.c
|
||||
+++ b/daemon/mount.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <mntent.h>
|
||||
|
||||
+#include "ignore-value.h"
|
||||
#include "daemon.h"
|
||||
#include "actions.h"
|
||||
|
||||
@@ -40,6 +41,9 @@ is_root_mounted (void)
|
||||
FILE *fp;
|
||||
struct mntent *m;
|
||||
|
||||
+ if (verbose)
|
||||
+ ignore_value (system ("cat /etc/mtab >&2"));
|
||||
+
|
||||
fp = setmntent ("/etc/mtab", "r");
|
||||
if (fp == NULL) {
|
||||
perror ("/etc/mtab");
|
||||
--
|
||||
1.7.3.5
|
||||
|
@ -30,7 +30,7 @@ Summary: Access and modify virtual machine disk images
|
||||
Name: libguestfs
|
||||
Epoch: 1
|
||||
Version: 1.9.7
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: LGPLv2+
|
||||
Group: Development/Libraries
|
||||
URL: http://libguestfs.org/
|
||||
@ -40,8 +40,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
# Disable FUSE tests, not supported in Koji at the moment.
|
||||
Patch0: libguestfs-1.7.13-no-fuse-test.patch
|
||||
|
||||
# Hack to debug build error.
|
||||
Patch1: 0001-hack-print-etc-mtab-in-is_root_mounted-test.patch
|
||||
Patch1: 0001-hack-Allow-time-for-etc-mtab-to-be-updated-print-con.patch
|
||||
|
||||
# Basic build requirements:
|
||||
BuildRequires: /usr/bin/pod2man
|
||||
@ -761,7 +760,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 1 2011 Richard W.M. Jones <rjones@redhat.com> - 1:1.9.7-2
|
||||
* Tue Feb 1 2011 Richard W.M. Jones <rjones@redhat.com> - 1:1.9.7-3
|
||||
- Enable trace in 'make check' section.
|
||||
- Add hack to track down problem in is_root_mounted (only affects Koji).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user