diff options
author | dancer <dancer> | 2003-11-08 15:18:59 +0000 |
---|---|---|
committer | dancer <dancer> | 2003-11-08 15:18:59 +0000 |
commit | 9e39c0aefe70839d48419572b5807afdfbfd1a7e (patch) | |
tree | bb6166b6d6946e25be956e61d85991e16b53023d /pbuilder-user-mode-linux | |
parent | de11a9276106cac8f099c85ebea8781ce2fff17a (diff) | |
download | pbuilder-9e39c0aefe70839d48419572b5807afdfbfd1a7e.tar pbuilder-9e39c0aefe70839d48419572b5807afdfbfd1a7e.tar.gz |
+ * pbuilder-user-mode-linux: add fsck
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-x | pbuilder-user-mode-linux | 4 |
1 files changed, 4 insertions, 0 deletions
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 |