Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: No resize orsStep by step image creation process



Hello,

On Tue, Aug 20, 2019 at 06:05:29PM +0100, Luis P. Mendes wrote:
> Hi,
> 
> 
> I've used images for RPi 3 boards, but would like some changes, for
> example, not having the resize for the whole SD card, as I'd like to
> mount /usr/pkgsrc and others in different slices.
> 
> The easier alternative is not to let the file system resize.  Is there
> a way to do this using the given installation image?
> 
> If not, is there a detailed step by step guide to create the
> installation image?
> 

Everything is done the "normal" way that is driven by /etc/rc.conf.

The resizing of root is done by the call of /etc/rc.d/resize_root from
it.

So once the image has been written to the uSD, you can simply mount
the 'a' partition and adjust as you see fit.

For the organization of the uSD card, YMMV. I personnally try to put the
minimum on it and to limit the writes in order to not wear it out too
quickly.

If you are building packages, putting the workdir on tmpfs is a good
idea---as long as you don't try to build a package that will need
gigabytes of space. And in this case invoking:

make DEPENDS_TARGET="install clean" [install|package]

will remove the obj dir as soon as the dependency is installed leaving
room.

HTH,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index