summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-01-28 09:38:09 -0500
committerjim-p <jimp@pfsense.org>2016-01-28 09:39:21 -0500
commitda2e65d5161a82fb339c7104d09479ee87dda03d (patch)
tree94f9297ebe75312d2ec4f87a061dc1b9b715d180 /src/usr/local
parent5ff2d3e1cc9960a5d1a522dbd8e7ddf27a32425a (diff)
downloadpfsense-da2e65d5161a82fb339c7104d09479ee87dda03d.zip
pfsense-da2e65d5161a82fb339c7104d09479ee87dda03d.tar.gz
Test duplicated slice with fsck after cloning during an upgrade
Diffstat (limited to 'src/usr/local')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade1
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}," \
OpenPOWER on IntegriCloud