summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin6
-rwxr-xr-xezjail.sh2
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)
774 # Attach images by type 774 # Attach images by type
775 attach_images 775 attach_images
776 776
777 # Clean image
778 fsck -t ufs -p -B /dev/${ezjail_device}
779
777 mount /dev/${ezjail_device} ${ezjail_rootdir} || detach_images keep || exerr "Error: Could not mount /dev/${ezjail_device} to ${ezjail_rootdir}." 780 mount /dev/${ezjail_device} ${ezjail_rootdir} || detach_images keep || exerr "Error: Could not mount /dev/${ezjail_device} to ${ezjail_rootdir}."
778 # relink image device 781 # relink image device
779 ln -s /dev/${ezjail_device} ${ezjail_rootdir}.device 782 ln -s /dev/${ezjail_device} ${ezjail_rootdir}.device
@@ -806,7 +809,8 @@ config)
806 # Attach images by type 809 # Attach images by type
807 attach_images 810 attach_images
808 811
809 fsck_ufs /dev/${ezjail_device} 812 # Clean image
813 fsck -t ufs /dev/${ezjail_device}
810 814
811 # Detach images by type 815 # Detach images by type
812 detach_images keep 816 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 ()
133 esac 133 esac
134 134
135 # Clean image 135 # Clean image
136 fsck_ufs -F -p /dev/${ezjail_device} 136 fsck -t ufs -p -B /dev/${ezjail_device}
137 137
138 # relink image device 138 # relink image device
139 rm -f ${ezjail_rootdir}.device 139 rm -f ${ezjail_rootdir}.device