Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/growfs
Show All 35 Lines | |||||
# | # | ||||
# TODO: Figure out where this should really be ordered. | # TODO: Figure out where this should really be ordered. | ||||
# I suspect it should go just after fsck but before mountcritlocal. | # I suspect it should go just after fsck but before mountcritlocal. | ||||
# | # | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="growfs" | name="growfs" | ||||
desc="Grow root partition to fill device" | |||||
start_cmd="growfs_start" | start_cmd="growfs_start" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
rcvar="growfs_enable" | rcvar="growfs_enable" | ||||
growfs_start () | growfs_start () | ||||
{ | { | ||||
echo "Growing root partition to fill device" | echo "Growing root partition to fill device" | ||||
rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') | rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |