Bug#667435: live-boot-initramfs-tools: Using kernel parameter nfsopts results in an incorrect invocation of nfsmount
Package: live-boot-initramfs-tools
Version: 2.0.15-1
Severity: wishlist
If the Linux kernel parameter "nfsopts" is used then scripts/live ends
up calling nfsmount incorrectly.
nfsmount is invoked like so:
nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
If, for example, a kernel command line like this is used:
root=/dev/nfs hostname=rescue boot=live config nfsroot=192.168.80.243:/srv/rescue nfsopts=tcp
then that results in the following being invoked:
nfsmount -o nolock -o ro tcp 192.168.80.243:/srv/rescue /live/image && rc=0 && break
This is a syntax error and results in a failed boot. Hacking a "-o "
onto the front of NFSOPTS works, if NFSOPTS is set.
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-boot-initramfs-tools depends on:
ii busybox 1:1.17.1-8 Tiny utilities for small and embed
ii initramfs-tools 0.98.8 tools for generating an initramfs
ii udev 164-3 /dev/ and hotplug management daemo
live-boot-initramfs-tools recommends no packages.
live-boot-initramfs-tools suggests no packages.
-- no debconf information
Reply to: