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
This commit is contained in:
Glen Barber 2018-04-18 16:22:23 +00:00
parent 4d88e7e65e
commit d893ef440d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=332731

View File

@ -89,6 +89,7 @@ growfs_start ()
exit 0
}
}' dev="$rawdev"
gpart commit "$rootdev"
growfs -y /dev/"$rootdev"
}