adding packages to nanobsd image
Espartano
espartano.mail at gmail.com
Tue Nov 27 16:22:43 UTC 2012
On Tue, Nov 27, 2012 at 4:28 AM, Jack Mc Lauren <jack.mclauren at yahoo.com> wrote:
> Hi all
>
> I have copied some packages in /usr/src/tools/tools/nanobsd/Pkg in order to build them on my image , but it seems that the order of building packages is important , and the priorities of a package must be installed before the package itself. How can i set these orders ?
>
> Thanks
I think it is not possible howeber you could install ports after have
been created nanobsd image, here possible steeps that you have to
follow:
1.- mount nanobsd image into a directory using mdconfig:
mdconfig -a -t vnode -u 1 -f /path_to_nanobsd_image
mount /dev/md1(nanobsd root partition) /mnt/
2.- create ports directory into nanobsd usr directory:
mkdir /mnt/usr/ports
3.- mount dev filesystem into nanobsd dev directory:
mount -t devfs devfs /mnt/dev/
4.- mount ports directory into nanobsd ports directory:
mount_nullfs /usr/ports /mnt/usr/ports
5.- change / directory:
chroot /mnt/
6.- be happy (install your ports)
Note: Nanobsd in boot time mount directory /var from another
directory, that directory is /conf/base/var .... and remember that
port installation process write info about installation into
/var/db/packages/ then you have to copy the content of that directory
into /conf/base/var ..... in order to have disponible ports package
info when you use commands like pkg_info or so.
Sorry for my bad english.
Regards.
More information about the freebsd-embedded
mailing list