From ba90c197a0e0f8c0983773b9942b9564a395a1b8 Mon Sep 17 00:00:00 2001 From: gjb Date: Wed, 18 Apr 2018 16:22:23 +0000 Subject: [PATCH] MFC r326278 (manu): growfs: Commit the changes after expanding the partition This fix the problem in arm snapshot present since at least 6 months where growfs was failing at firstboot and dropped you in a single user shell. Note: In addition to this merge, kern.geom.part.mbr.enforce_chs has been enabled on the build machine to mitigate against the issue in the PR referenced. PR: 226536 Sponsored by: The FreeBSD Foundation git-svn-id: svn://svn.freebsd.org/base/stable/10@332731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.d/growfs | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/rc.d/growfs b/etc/rc.d/growfs index cc0ed1199..7fe78b2db 100755 --- a/etc/rc.d/growfs +++ b/etc/rc.d/growfs @@ -89,6 +89,7 @@ growfs_start () exit 0 } }' dev="$rawdev" + gpart commit "$rootdev" growfs -y /dev/"$rootdev" } -- 2.42.0