[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727215: live-build: --net-root-server and --net-root-path have no effect



Package: live-build
Version: 3.0.5-1
Severity: normal

Dear Maintainer,

I built a netboot image with the following configuration (following the
manual at
http://live.debian.net/manual/stable/html/live-manual/the-basics.en.html#235
):

	lb config -b netboot --net-root-path "/srv/netboot"
--net-root-server "<OUR_NFS_SERVER_IP>"

We already have a TFTP/NFS server set up, and our clients are able to boot
live images from it. However, they could not boot the image I built with
live-build, failing when trying to access the file system. When we compared
the pxelinux append lines (in live.cfg) with those from the working images,
we found that the netboot and nfsroot options were missing. Adding
"netboot=nfs nfsroot=<OUR_NFS_SERVER_IP>:/srv/netboot" fixed the issue.

A search through the live-build scripts revealed that the argument to
--net-root-path is put into variable LB_NET_ROOT_PATH and the argument to
--net-root-server is put into LB_NET_ROOT_SERVER. Neither of these makes it
into LB_BOOTAPPEND_LIVE, which is used in
/usr/lib/live/build/binary_syslinux to create the append line in live.cfg.
Instead, LB_BOOTAPPEND_LIVE contains the defaults as set in
/usr/share/live/build/functions/defaults.sh and thus the options in live.cfg
are

	append boot=live config quiet splash

I am fairly new to booting live images over the network, so perhaps the NFS
server and path information is supposed to be part of the image some other
way. I did use grep to search for occurrences of our NFS server IP address
in the image files but found nothing. So, it would appear that the options
--net-root-server and --net-root-path have no effect. (Other than the
basename of --net-root-path being used to name the root directory of the
file system in /usr/lib/live/build/binary_netboot.)

Hope this information is useful and that the issue can be resolved.

Sigrid


-- Package-specific info:

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-build depends on:
ii  debootstrap  1.0.48+deb7u1

Versions of packages live-build recommends:
ii  cpio                            2.11+dfsg-0.1
ii  gnu-fdisk                       1.2.4-3.1
ii  live-boot-doc                   3.0.1-1
ii  live-config-doc                 3.0.23-1
ii  live-manual-html [live-manual]  1:3.0.2-1

Versions of packages live-build suggests:
pn  debian-keyring              <none>
ii  dosfstools                  3.0.13-1
ii  fakeroot                    1.18.4-2
pn  git                         <none>
ii  gpgv                        1.4.12-7+deb7u2
pn  loadlin                     <none>
pn  memtest86+ | memtest86      <none>
pn  mtools                      <none>
pn  parted                      <none>
pn  squashfs-tools | mtd-tools  <none>
ii  sudo                        1.8.5p2-1+nmu1
pn  syslinux | grub             <none>
pn  uuid-runtime                <none>
pn  win32-loader                <none>
pn  xorriso                     <none>

-- no debconf information

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Reply to: