aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2003-11-08 15:18:59 +0000
committerdancer <dancer>2003-11-08 15:18:59 +0000
commit9e39c0aefe70839d48419572b5807afdfbfd1a7e (patch)
treebb6166b6d6946e25be956e61d85991e16b53023d
parentde11a9276106cac8f099c85ebea8781ce2fff17a (diff)
downloadpbuilder-9e39c0aefe70839d48419572b5807afdfbfd1a7e.tar
pbuilder-9e39c0aefe70839d48419572b5807afdfbfd1a7e.tar.gz
+ * pbuilder-user-mode-linux: add fsck
-rw-r--r--ChangeLog4
-rw-r--r--debian/changelog1
-rwxr-xr-xpbuilder-user-mode-linux4
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5854170..3bf9990 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-11-08 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-user-mode-linux: add fsck
+
2003-11-06 Junichi Uekawa <dancer@debian.org>
* pdebuild-user-mode-linux.1: update documentation.
diff --git a/debian/changelog b/debian/changelog
index b2017cc..f44b18c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
pbuilder (0.94) UNRELEASED; urgency=low
* pdebuild-user-mode-linux: support --configfile as pdebuild does.
+ * fsck before mount, in pbuilder-user-mode-linux
-- Junichi Uekawa <dancer@debian.org> Thu, 6 Nov 2003 07:18:31 +0900
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux
index be1e705..35eabbb 100755
--- a/pbuilder-user-mode-linux
+++ b/pbuilder-user-mode-linux
@@ -64,6 +64,10 @@ ${UML_DEBUGMODE}
mount -t proc /proc /proc
mount -t tmpfs /tmp /tmp
+if ! fsck /dev/ubd/1; then
+ echo "E: Failed to fsck /dev/ubd/1"
+ exit 1
+fi
if ! mount -t ext2 /dev/ubd/1 ${UML_CHROOT_MOUNTPOINT}; then
echo "E: Cannot mount /dev/ubd/1, is UML root image accessible as current user?"
exit 1