Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 02:28:39 -0800 (PST)
From:      Jack Mc Lauren <jack.mclauren@yahoo.com>
To:        "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>
Subject:   adding packages to nanobsd image
Message-ID:  <1354012119.9287.YahooMailNeo@web160104.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
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
From owner-freebsd-embedded@FreeBSD.ORG  Tue Nov 27 16:22:43 2012
Return-Path: <owner-freebsd-embedded@FreeBSD.ORG>
Delivered-To: freebsd-embedded@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
 by hub.freebsd.org (Postfix) with ESMTP id 452D8721
 for <freebsd-embedded@freebsd.org>; Tue, 27 Nov 2012 16:22:43 +0000 (UTC)
 (envelope-from espartano.mail@gmail.com)
Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com
 [209.85.223.182])
 by mx1.freebsd.org (Postfix) with ESMTP id 04D4D8FC12
 for <freebsd-embedded@freebsd.org>; Tue, 27 Nov 2012 16:22:42 +0000 (UTC)
Received: by mail-ie0-f182.google.com with SMTP id s9so15211523iec.13
 for <freebsd-embedded@freebsd.org>; Tue, 27 Nov 2012 08:22:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 bh=bX/QWiwXfsT8x//lKVOUlIHstfULAE/YrUHz/+f+/pU=;
 b=JDXB9QzfqAvSMB6t9K61VIqZYKeSoHpGLorO7wThnwwO1fWl/RCSs9ahHWrRi71flV
 tIcQjRmU+NqcEFTtlf55XCYZLwAB7lBLbfp+8CSn/F2gybSHVE9QwXOdkFSuwHdZS/iu
 u1uEFyO7U9b5MwdM6Ld45r3nVL7LxbahOrdkR4oP08VVn81v1IARrtmKBYijV8L3SiHA
 lyuzhfBoNt2+SiRtWzfBq8jDl5L6ptqqrpTbFuAzFOuZ7xUe/c00zfLiZxL54ubm99XI
 /UTIm3EpSmxnYV9WYz7Bmqx/U/NFCLsWLRG+L7eUezBoI322J/kBKxQiAB4M3mg+A3fK
 xLFg==
MIME-Version: 1.0
Received: by 10.50.150.144 with SMTP id ui16mr16322328igb.68.1354033362248;
 Tue, 27 Nov 2012 08:22:42 -0800 (PST)
Received: by 10.64.37.41 with HTTP; Tue, 27 Nov 2012 08:22:42 -0800 (PST)
In-Reply-To: <1354012119.9287.YahooMailNeo@web160104.mail.bf1.yahoo.com>
References: <1354012119.9287.YahooMailNeo@web160104.mail.bf1.yahoo.com>
Date: Tue, 27 Nov 2012 10:22:42 -0600
Message-ID: <CAJaC6KbFpL0C2PC44u0=rrewgKkkaa6Uk4j-P1RNVQheaOsvOg@mail.gmail.com>
Subject: Re: adding packages to nanobsd image
From: Espartano <espartano.mail@gmail.com>
To: Jack Mc Lauren <jack.mclauren@yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>
X-BeenThere: freebsd-embedded@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Dedicated and Embedded Systems <freebsd-embedded.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-embedded>, 
 <mailto:freebsd-embedded-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-embedded>;
List-Post: <mailto:freebsd-embedded@freebsd.org>
List-Help: <mailto:freebsd-embedded-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-embedded>, 
 <mailto:freebsd-embedded-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Nov 2012 16:22:43 -0000

On Tue, Nov 27, 2012 at 4:28 AM, Jack Mc Lauren <jack.mclauren@yahoo.com> w=
rote:
> 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 package=
s is important , and the priorities of a package must be installed before t=
he 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1354012119.9287.YahooMailNeo>