Public bug reported:

>From https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt:
nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]

NFSOPTS are properly supported by initramfs-tools/scripts/nfs:
if [ "${NFSROOT#*,}" != "${NFSROOT}" ]; then
    NFSOPTS="-o ${NFSROOT#*,}"
fi

But casper doesn't support them properly like this.
Casper assumes that the scripts/nfs code has already ran and set NFSOPTS, which 
it didn't.
So the only way to set NFSOPTS with casper is to actually pass NFSOPTS=xxx in 
the kernel cmdline; the kernel itself then passes this as an init parameter.

This behavior is wrong and undocumented, NFSOPTS isn't a kernel
parameter but an internal variable of initramfs-tools/scripts/nfs, which
isn't set when casper runs, and casper needs to set it by doing an "if"
like the one above ^.

** Affects: casper (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "casper.patch"
   
https://bugs.launchpad.net/bugs/1844761/+attachment/5289885/+files/casper.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1844761

Title:
  Casper doesn't properly support NFSOPTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1844761/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to