From 9e39c0aefe70839d48419572b5807afdfbfd1a7e Mon Sep 17 00:00:00 2001 From: dancer Date: Sat, 8 Nov 2003 15:18:59 +0000 Subject: + * pbuilder-user-mode-linux: add fsck --- pbuilder-user-mode-linux | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pbuilder-user-mode-linux') 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 -- cgit v1.2.3