diff options
Diffstat (limited to 'ezjail-admin')
| -rwxr-xr-x | ezjail-admin | 6 |
1 files changed, 5 insertions, 1 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 |
