Re: netboot option
On 2012-04-04 05:14, Daniel Baumann wrote:
On 04/03/2012 11:41 PM, Bob Blanchard wrote:
In order to get it to work, I need to modify the pxeconfig (for
nfsroot
options),
what options did you need to specify?
After the usual: lb config -b net --net-root-path "/usr2/debian-live"
--net-root-server "192.168.202.187" (my nfs server and path), and lb
build, the resulting binary-net.tar.gz contained the following:
drwxr-xr-x 4 root root 4096 2012-04-03 16:33 debian-live
drwxr-xr-x 2 root root 4096 2012-04-03 16:33 tftpboot
./debian-live:
total 12
drwxr-xr-x 3 root root 4096 2012-04-03 16:33 doc
drwxr-xr-x 2 root root 4096 2012-04-03 16:33 live
-rw-r--r-- 1 root root 2859 2012-04-03 16:33 md5sum.txt
./debian-live/doc <-- CUT -->
./debian-live/live:
total 188460
-rw-r--r-- 1 root root 4509 2012-04-03 16:32 filesystem.packages
-rw-r--r-- 1 root root 432 2012-04-03 16:32
filesystem.packages-remove
-rw-r--r-- 1 root root 171216896 2012-04-03 16:30 filesystem.squashfs
-rw-r--r-- 1 root root 8137442 2012-04-03 16:32 initrd1.img
-rw-r--r-- 1 root root 8254582 2012-04-03 16:32 initrd2.img
-rw-r--r-- 1 root root 176764 2012-04-03 16:32 memtest
-rw-r--r-- 1 root root 2497760 2012-04-03 16:32 vmlinuz1
-rw-r--r-- 1 root root 2678272 2012-04-03 16:32 vmlinuz2
./tftpboot:
total 220
-rw-r--r-- 1 root root 8 2012-04-03 16:33 install.cfg
-rw-r--r-- 1 root root 262 2012-04-03 16:33 live.cfg
-rw-r--r-- 1 root root 117 2012-02-07 04:02 menu.cfg
-rw-r--r-- 1 root root 26461 2012-01-27 16:44 pxelinux.0
-rw-r--r-- 1 root root 57 2012-02-07 04:02 pxelinux.cfg
-rw-r--r-- 1 root root 13166 2012-02-07 04:02 splash.png
-rw-r--r-- 1 root root 508 2012-02-07 04:02 stdmenu.cfg
-rw-r--r-- 1 root root 155792 2012-01-27 16:44 vesamenu.c32
So right away I noticed that tftpboot didn't contain the debian-live
directory with the kernel and initrd, which according to online manual
it should.
The pxelinux.cfg was a file, so I had to move it to
pxelinux.cfg/default (since my pxe clients were complaining "cannot find
config file").
The live.cfg file had these lines:
label live-486
menu label ^Live (486)
menu default
kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live config
label live-686-pae
menu label ^Live (686-pae)
menu default
kernel /live/vmlinuz2
append initrd=/live/initrd2.img boot=live config
I copied the vmlinuz* and initrd* from debian-live/live into the
tftpboot directory. Client then booted kernel, but it panic'd
complaining about root filesystem.
At this point I guessed that the kernel needed CONFIG_ROOT_NFS, so I
re-built the kernel, copied it to tftpboot, and added "root=/dev/nfs
nfsroot=192.168.202.187:/usr2/debian-live" to live.cfg - and I was then
able to boot successfully.
Thanks,
-Bob
Reply to: