rc: improve dependencies for growfs

Previously it depended on sysctl, which itself has no dependencies,
so rcorder(8) had a bit too much flexibility when choosing when to run
it.  Make sure it runs just between 'fsck' and 'root'.

Reviewed By:	jmg, imp
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D29748
This commit is contained in:
Edward Tomasz Napierala 2021-04-25 13:41:36 +01:00
parent 67372fb3e0
commit b68e656922

View File

@ -28,15 +28,17 @@
#
# PROVIDE: growfs
# BEFORE: sysctl
# REQUIRE: fsck
# BEFORE: root
# KEYWORD: firstboot
# This allows us to distribute an image
# and have it work on essentially any size drive.
#
# TODO: Figure out where this should really be ordered.
# I suspect it should go just after fsck but before mountcritlocal.
#
# Note that this uses awk(1), and thus will not work if /usr is on a separate
# filesystem. We need to run early, because there might be not enough free
# space on rootfs for the boot to succeed, and on images we ship - which are
# the primary purpose of this script - there is no separate /usr anyway.
. /etc/rc.subr