On Sun, Nov 02, 2014 at 12:11:26AM +0000, John-Mark Gurney wrote: > Author: jmg > Date: Sun Nov 2 00:11:25 2014 > New Revision: 273955 > URL: https://svnweb.freebsd.org/changeset/base/273955 > > Log: > add an rc.d script to automatically grow the specified FS... It has > been tested on both MBR and GPT... It won't be enabled until you add > growfs_enable="YES" and will only run on first boot..
Nice. I've been wanting something like this for our boards. A few comments: - It looks like the current script doesn't support specifying a file system and just finds the root dev. As a practical matter being able to specify one probably isn't useful without doing the work to extend the last partition on a device, but I could see cases where /usr or the like is on removable media an / is an mdroot or otherwise on fixed size storage. - Being able to specify a size would be useful. For example, I might want to growfs to 2GB by default and expand to the media size later if warranted. - A configurable delay during which ^C causes growfs to be skipped would be useful when testing an image. Growfs on large or very slow media is something I'd like to be able to avoid when I'm just testing. - The shell lines should probably use tab for indentation to match system style and the awk bits. -- Brooks
pgp0CEilV_q3J.pgp
Description: PGP signature