diff options
author | jim-p <jimp@pfsense.org> | 2016-01-28 09:38:09 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-01-28 09:39:21 -0500 |
commit | da2e65d5161a82fb339c7104d09479ee87dda03d (patch) | |
tree | 94f9297ebe75312d2ec4f87a061dc1b9b715d180 /src/usr/local | |
parent | 5ff2d3e1cc9960a5d1a522dbd8e7ddf27a32425a (diff) | |
download | pfsense-da2e65d5161a82fb339c7104d09479ee87dda03d.zip pfsense-da2e65d5161a82fb339c7104d09479ee87dda03d.tar.gz |
Test duplicated slice with fsck after cloning during an upgrade
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 5480504..65a0e04 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -510,6 +510,7 @@ setup_nanobsd_env() { _exec "tunefs -L ${_update_partition##*/} ${_update_slice}" "Restoring slice label" mute sysctl kern.geom.debugflags=0 >/dev/null 2>&1 + _exec "/sbin/fsck -y -t ufs /dev/${_update_partition}" "Testing duplicated partition integrity" mute _exec "mount /dev/${_update_partition} ${chroot_dir}" "Mounting second partition to run upgrade" mute sed -i '' -e "s,^${_cur_partition},/dev/${_update_partition}," \ |