Try fscking the correct way. Have not yet figured it out completely

This commit is contained in:
erdgeist 2007-02-22 16:01:09 +00:00
parent 31ac44c0ff
commit 2cb3c00485
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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