[Bug 1844761] [NEW] Casper doesn't properly support NFSOPTS
Alkis Georgopoulos
1844761 at bugs.launchpad.net
Fri Sep 20 07:46:42 UTC 2019
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
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1844761
Title:
Casper doesn't properly support NFSOPTS
Status in casper package in Ubuntu:
New
Bug description:
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 ^.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1844761/+subscriptions
More information about the foundations-bugs
mailing list