From 2cb3c00485f23705ef02c6b9aba61ec83edb7e02 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 22 Feb 2007 16:01:09 +0000 Subject: Try fscking the correct way. Have not yet figured it out completely --- ezjail-admin | 6 +++++- ezjail.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ezjail-admin b/ezjail-admin index 9b9f699..cc9cb12 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -774,6 +774,9 @@ config) # Attach images by type attach_images + # Clean image + fsck -t ufs -p -B /dev/${ezjail_device} + mount /dev/${ezjail_device} ${ezjail_rootdir} || detach_images keep || exerr "Error: Could not mount /dev/${ezjail_device} to ${ezjail_rootdir}." # relink image device ln -s /dev/${ezjail_device} ${ezjail_rootdir}.device @@ -806,7 +809,8 @@ config) # Attach images by type attach_images - fsck_ufs /dev/${ezjail_device} + # Clean image + fsck -t ufs /dev/${ezjail_device} # Detach images by type detach_images keep diff --git a/ezjail.sh b/ezjail.sh index 1b78fd3..2751ea0 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -133,7 +133,7 @@ attach_detach_pre () esac # Clean image - fsck_ufs -F -p /dev/${ezjail_device} + fsck -t ufs -p -B /dev/${ezjail_device} # relink image device rm -f ${ezjail_rootdir}.device -- cgit v1.2.3