Bug#667435: live-boot-initramfs-tools: Using kernel parameter nfsopts results in an incorrect invocation of nfsmount

April 03rd, 2012 - 10:30 pm ET by Andy Smith | Report spam
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 nfsroot2.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.

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.




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Daniel Baumann
April 04th, 2012 - 05:00 am ET | Report spam
severity 667435 normal
tag 667435 pending
thanks

On 04/04/2012 03:43 AM, Andy Smith wrote:
If the Linux kernel parameter "nfsopts" is used then scripts/live ends
up calling nfsmount incorrectly.



fixed in git, thanks.

Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:
Internet: http://people.progress-technologies.net/~daniel.baumann/



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics