On one of my TSL 2.2 boxes I followed Morten's advice from his recent wiki
posts and also from a message to the list.

Specifically he suggested that I do what he put in his Wiki post the otehr
day in preparation to install TSL on an embedded system which can run
RedHat, various flavors of BSD, etc. Being new to the embedded systems
world, I tried to follow his advice because I want to minimize the number of
writes to the CF card which will be the "HDD" for this system.  So I chose
to follow the concept of using an nfsmount on another system as the place to
boot the embedded system using an nfs-mounted / partition.

His wiki advice suggested the following steps:

~# mkdir /path/to/root
~# rpm --root /path/to/root --initdb
~# swup --root /path/to/root --import-key
/usr/share/tsl-gpgkeys/trustix-gpgkey.pub.gpg
~# swup --root /path/to/root --install swup bash-static vim

On one of my 2.2 boxes, I followed the first two steps and then received the
following error:

[EMAIL PROTECTED] /home/root-export# rpm --initdb --root /home/root-export
error: cannot open Packages index using db3 - No such file or directory (2)

Now, never having seen rpm actually used in such a way, and examining the
rpm man page, I figured that this would create a new rpm database in
/home/root-export.  Instead I got the error displayed above.

I then used this as an opportunity to install 3.0 on another box.  The above
four steps worked fine, and I wound up with a "skeleton" system in
/home/root-export.  Later in the Wiki post Morten suggests  "chroot
/home/root-export" then some more package installs. This did not work as the
swup installs failed due to failed dependency checks for various pam modules
and various components of glibc.  I was surprised that the command swup
--root /home/root-export --install swup bash-static vim put alsmost an
entire system in the /home/root-export tree.

So, I am still scratching my head over this and some other aspects of my not
being able to get my embedded system to recognize TSL, even though the
pxeboot works fine and the custom bzImage I created transfers to the
embedded box bit does not execute.

I will provide more information as I work through all this.

Regards to all and thanks for being a great community.

Bruce
--


> -----Original Message-----
> From: Morten Nilsen [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 02, 2005 7:28 AM
> To: [email protected]
> Subject: Re: swup and chroot?
> 
> 
> Christian H. Toldnes wrote:
> > Morten Nilsen wrote:
> >> in any case.. --initdb seems not to work so well..
> > 
> > Anyway, if you don't tell me what exactly did not work so well with 
> > initrd, I'm hard pressed to give you the solution. :)
> 
> I'll have to defer that question to Bruce.. I haven't tried 
> it myself..
> 
> -- 
> Morten
> _______________________________________________
> tsl-discuss mailing list
> [email protected]
> http://lists.trustix.org/mailman/listinfo/tsl-discuss
> 
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to