...
> 
> so, how have you set up your boot?
> 
> this is how I did it;
> 
> server;
> /etc/dhcpd.conf:
> ...
>       host box.example.com {
>               hardware ethernet 00:00:00:00:00:00;
>               fixed-address 10.0.0.6;
>               option root-path "10.0.0.3:/mnt/tmp";
>       }
> /tftpboot/pxelinux.cfg/01-00-00-00-00-00-00:
> LABEL linux
>          KERNEL vmlinuz-epia
>          APPEND init=/sbin/init root=/dev/nfs ip=bootp
> 
> and then I exported /mnt/tmp on 10.0.0.3..
> 
> to get /mnt/tmp sorted out..
> # rpm --initdb --root /mnt/tmp
> # swup --root /mnt/tmp --import-key \
> /usr/share/tsl-gpgkeys/trustix-gpgkey.pub.gpg
> # swup --root /mnt/tmp --install bash-static swup
> # chroot /mnt/tmp
> # swup --install what_you_need
> 
> As for your actual question..
> I don't know. :)

Here's what I did.  This is for an embedded linux system with a CF card 
as "disk", so I want to minimize writes to the CF card.

1. Built a minimum TSL 2.2 on a "spare" system with /, /usr, /var, and 
/home partitions.

2. Created an nfsmount point on the dhcp server in /home/newbox, and 
mounted on /mnt on the "spare" system.

3. copied the / partition to the nfs mount point using tar clSf - . | 
(cd /mnt; tar xpSf -)

4. On dhcp server:

/etc/dhcpd.conf:

         host newbox {
             hardware ethernet 00:00:36:c5:2f:a0;
             filename "pxeboot";
             option root-path "10.10.10.10:/home/newbox";
             fixed-address 10.10.10.19;
             next-server 10.10.10.10;
        }

/tftpboot/pxelinux.cfg/00:00:36:c5:2f:a0:

SERIAL 0 9600 0
PROMPT 1
DEFAULT cf
label cf
kernel vmlinuz
append console=ttyS0,9600n81 root=/dev/nfs 
nfsroot=10.10.10.10:/home/newbox ip=static ramdisk_size=8192 rw

(the above append line was on one line.)

5. Interestingly enough, I could not get the pxelinux.0 from the Trustix 
syslinux package to work at all, so I had to grab a copy from a RedHat 
distro which did work.

I am now going to read your two wiki posts and try the new kernel I 
built last evening with CONFIG_ROOT_NFS built in and see what happens.

As an added point of interest, I also ran into an interesting problem 
with anaconda failing when trying to install onto CF card using an nfs 
mounted distro.  Anaconda failed while trying to write to /dev/tty5.

Anyway, regards and thanks for the info!
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to