Debian Bug report logs - #409271
initramfs-tools: NFSv4 not supported for root fs

version graph

Package: initramfs-tools; Maintainer for initramfs-tools is Debian kernel team <debian-kernel@lists.debian.org>; Source for initramfs-tools is src:initramfs-tools.

Reported by: John Goerzen <jgoerzen@complete.org>

Date: Thu, 1 Feb 2007 15:48:12 UTC

Severity: normal

Found in version initramfs-tools/0.85e

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to John Goerzen <jgoerzen@complete.org>:
New Bug report received and forwarded. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: John Goerzen <jgoerzen@complete.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: initramfs-tools: NFSv4 not supported for root fs
Date: Thu, 01 Feb 2007 09:29:52 -0600
Package: initramfs-tools
Version: 0.85e
Severity: normal

It appears to be largely undocumented, but a review of
/usr/share/initramfs/scripts/nfs shows that this package supports NFSv2
and v3 only.  I don't know why v4 isn't supported.

-- Package-specific info:
-- /proc/cmdline
root=/dev/hda10 ro 

-- /proc/filesystems
	cramfs
	xfs
	ext2
	iso9660

-- lsmod
Module                  Size  Used by
ppdev                   8964  0 
vmnet                  34796  13 
parport_pc             32612  0 
parport                33672  2 ppdev,parport_pc
vmmon                 104236  0 
nls_iso8859_1           4544  0 
isofs                  33276  0 
binfmt_misc            11272  1 
cpufreq_ondemand        6924  1 
nfsd                  199792  10 
exportfs                6080  1 nfsd
button                  6928  0 
ac                      5508  0 
battery                 9924  0 
nfs                   203980  2 
lockd                  55240  3 nfsd,nfs
nfs_acl                 3904  2 nfsd,nfs
sunrpc                139772  13 nfsd,nfs,lockd,nfs_acl
ipv6                  228064  28 
ext2                   59656  1 
mbcache                 8644  1 ext2
dm_crypt               11272  0 
powernow_k8            13696  1 
freq_table              4832  1 powernow_k8
floppy                 53668  0 
psmouse                35336  0 
rtc                    12788  0 
pcspkr                  3392  0 
serio_raw               6980  0 
snd_intel8x0           30620  2 
snd_ac97_codec         83360  1 snd_intel8x0
snd_ac97_bus            2688  1 snd_ac97_codec
snd_pcm_oss            39200  0 
i2c_nforce2             7232  0 
snd_mixer_oss          15552  1 snd_pcm_oss
shpchp                 33312  0 
pci_hotplug            29056  1 shpchp
i2c_core               20096  1 i2c_nforce2
snd_pcm                68996  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              21316  1 snd_pcm
snd                    47524  10 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               9568  1 snd
snd_page_alloc          9928  2 snd_intel8x0,snd_pcm
amd64_agp              12292  1 
agpgart                30216  1 amd64_agp
eth1394                18756  0 
joydev                  9408  0 
tsdev                   7808  0 
evdev                   9408  0 
xfs                   480024  4 
dm_mirror              19600  0 
dm_snapshot            15840  0 
dm_mod                 50776  10 dm_crypt,dm_mirror,dm_snapshot
ide_cd                 36576  0 
cdrom                  33056  1 ide_cd
ide_disk               15168  8 
sata_nv                11332  0 
libata                 90644  1 sata_nv
generic                 5316  0 [permanent]
usbhid                 37856  0 
ohci1394               31344  0 
ieee1394               88376  2 eth1394,ohci1394
aic7xxx               151764  0 
scsi_transport_spi     22656  1 aic7xxx
scsi_mod              124872  3 libata,aic7xxx,scsi_transport_spi
amd74xx                13340  0 [permanent]
ide_core              110984  4 ide_cd,ide_disk,generic,amd74xx
ehci_hcd               28488  0 
ohci_hcd               18564  0 
forcedeth              38596  0 
usbcore               113412  4 usbhid,ehci_hcd,ohci_hcd
thermal                13896  0 
processor              29128  2 powernow_k8,thermal
fan                     5124  0 

-- kernel-img.conf
# Do not create symbolic links in /
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /sbin/update-grub
postrm_hook   = /sbin/update-grub


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-3  Tiny utilities for small and embed
ii  cpio                          2.6-17     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.30-3   small statically-linked utilities 
ii  module-init-tools             3.3-pre4-1 tools for managing Linux kernel mo
ii  udev                          0.103-2    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to "H. Peter Anvin" <hpa@zytor.com>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at 409271@bugs.debian.org (full text, mbox):

From: "H. Peter Anvin" <hpa@zytor.com>
To: maximilian attems <maks@sternwelten.at>
Cc: John Goerzen <jgoerzen@complete.org>, 409271@bugs.debian.org, klibc list <klibc@zytor.com>
Subject: Re: [klibc] Bug#409271: initramfs-tools: NFSv4 not supported for root fs
Date: Thu, 01 Feb 2007 08:38:40 -0800
maximilian attems wrote:
> [ adding klibc ml to cc ]
> 
> On Thu, Feb 01, 2007 at 09:29:52AM -0600, John Goerzen wrote:
>> It appears to be largely undocumented, but a review of
>> /usr/share/initramfs/scripts/nfs shows that this package supports NFSv2
>> and v3 only.  I don't know why v4 isn't supported.
> 
> yup,
> this needs nfs v4 support in klibc nfsmount.
> would be could to get that soon postetch,
> but someone will have to implement it ;-)
> 

NFSv4 and NFS over IPv6 would both be Very Good Things to have in klibc, 
partially because it might actually satisfy Linus' requirement of "must 
add new features above what the kernel already has."

I'm not an NFS expert, but I'd be willing to work with someone who is as 
necessary to deal with the NFSv4 mount protocol.  I understand NFSv4 
gets rid of mountd, so it should be simpler?

	-hpa



Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to maximilian attems <maks@sternwelten.at>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #15 received at 409271@bugs.debian.org (full text, mbox):

From: maximilian attems <maks@sternwelten.at>
To: John Goerzen <jgoerzen@complete.org>, 409271@bugs.debian.org
Cc: klibc list <klibc@zytor.com>
Subject: Re: Bug#409271: initramfs-tools: NFSv4 not supported for root fs
Date: Thu, 1 Feb 2007 17:25:12 +0100
[ adding klibc ml to cc ]

On Thu, Feb 01, 2007 at 09:29:52AM -0600, John Goerzen wrote:
> 
> It appears to be largely undocumented, but a review of
> /usr/share/initramfs/scripts/nfs shows that this package supports NFSv2
> and v3 only.  I don't know why v4 isn't supported.

yup,
this needs nfs v4 support in klibc nfsmount.
would be could to get that soon postetch,
but someone will have to implement it ;-)

--
maks



Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to Johannes Frank <jfrank@studebo.de>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #20 received at 409271@bugs.debian.org (full text, mbox):

From: Johannes Frank <jfrank@studebo.de>
To: 409271@bugs.debian.org
Subject: Workaround for nfs4
Date: Tue, 20 Mar 2007 01:05:28 +0100
Actually I have the same problem, a fix would be highly appreciated. 
Currently I try to do a workaround, by including the normal dynamicly 
linked mount in initramfs. but currently I get the error: Can't find 
address for <my-host-name>. The increase in size is marginal.
Maybe /etc/hosts is missing or something, or I need a running DNS for my 
network. If someone has an idea....

Johannes Frank



Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to David Härdeman <david@hardeman.nu>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #25 received at 409271@bugs.debian.org (full text, mbox):

From: David Härdeman <david@hardeman.nu>
To: 409271@bugs.debian.org
Cc: hpa@zytor.com
Subject: Re: Bug#409271: initramfs-tools: NFSv4 not supported
Date: Tue, 23 Oct 2007 12:36:59 +0200 (CEST)
I've played around a bit with this and although I don't have anything that
works yet, here's some ideas on how it could be implemented:

I assume that DHCP and ip config is already taken care of (as the nfs
support has that code already). I also assume that most people will be
using NFSv4 with Kerberos authentication (it seems to be the most common
setup).

The following files would need to be added to the initramfs:
/usr/sbin/rpc.gssd
/usr/sbin/rpc.idmapd
Config files for kerberos and the two rpc daemons
Kernel modules (nfs and rpcsec_gss_krb5)
nfs4 capable mount program

Since it would probably be a bad thing to store the kerberos keytab inside
the initramfs image, my idea was to use kadmin to get the nfs principal
(usually nfs/host.domain@REALM) from the kdc, so /usr/sbin/kadmin would be
added as well.

A initramfs config file can hold the principal to use for nfs and the realm.

Then the setup would be:

1. Setup networking
2. Use kadmin to get nfs/host.domain@REALM and store to /etc/krb5.keytab:
   kadmin -r REALM -p userprincipal -q "ktadd -k /etc/krb5.keytab
                                        nfs/host.domain@REALM"
   (note: userprincipal defaults to root/admin)
3. Mount rpc_pipefs on /var/lib/nfs/rpc_pipefs
4. Load kernel modules
5. Start rpc.gssd and rpc.idmapd
6. Mount NFS root

When initramfs is done, it will nuke the contents of the initramfs
(including the keytab) from memory. The keytab to use thereafter is
expected to be found in /etc/krb5.keytab after pivot_root as usual.

The main problems seem to be:

o How and when should the rpc daemons be restarted so that the ones from
the nfs-root-fs are used instead of the ones from initramfs? This is
especially important if some of the hacks below are used...

o All these programs make for a quite fat initramfs and little use of
klibc (libc6 and a bunch of other libraries will be pulled in). A hacked
version of idmapd could possibly be written (the real one is about 1k
lines of code) which always maps everything to root (since we are running
in the initramfs context anyway), but I'm not so sure about the other
tools. Changes to the klibc nfsmount also seem doable, but that leaves
rpc.gssd and the kerberos tools. rpc.gssd might be simplified by the fact
that for the root user it uses the machine credentials, but there is still
a lot of code...

-- 
David Härdeman





Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to Fabrice Lorrain <Fabrice.Lorrain@free.fr>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #30 received at 409271@bugs.debian.org (full text, mbox):

From: Fabrice Lorrain <Fabrice.Lorrain@free.fr>
To: 409271@bugs.debian.org, Aníbal Monsalve Salazar <anibal@debian.org>, debian-live-devel@lists.alioth.debian.org, "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Subject: Status of this bug ?
Date: Sun, 10 Aug 2008 16:35:23 +0200
Hello,

I've just read through bts #409271 :"initramfs-tools: NFSv4 not 
supported for root fs"
and I'm interrested in knowing the status of this bug for lenny.

Thanks,

@+,
	Fab

PS : ccing nfs-aware people.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. Full text and rfc822 format available.

Acknowledgement sent to "Steinar H. Gunderson" <sgunderson@bigfoot.com>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #35 received at 409271@bugs.debian.org (full text, mbox):

From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
To: Fabrice Lorrain <Fabrice.Lorrain@free.fr>
Cc: 409271@bugs.debian.org, Aníbal Monsalve Salazar <anibal@debian.org>, debian-live-devel@lists.alioth.debian.org
Subject: Re: Status of this bug ?
Date: Sun, 10 Aug 2008 17:03:28 +0200
On Sun, Aug 10, 2008 at 04:35:23PM +0200, Fabrice Lorrain wrote:
> I've just read through bts #409271 :"initramfs-tools: NFSv4 not  
> supported for root fs"
> and I'm interrested in knowing the status of this bug for lenny.

AFAIK my understanding is: klibc's mount doesn't support NFSv4, initramfs
insists on using klibc's mount, stalemate.

/* Steinar */
-- 
Homepage: http://www.sesse.net/




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Tue, 08 Jun 2010 13:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Prokop <mika@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 08 Jun 2010 13:51:04 GMT) Full text and rfc822 format available.

Message #40 received at 409271@bugs.debian.org (full text, mbox):

From: Michael Prokop <mika@debian.org>
To: "Steinar H. Gunderson" <sgunderson@bigfoot.com>, 409271@bugs.debian.org
Cc: maximilian attems <max@stro.at>
Subject: Re: Bug#409271: Status of this bug ?
Date: Tue, 8 Jun 2010 15:47:59 +0200
[Message part 1 (text/plain, inline)]
* Steinar H. Gunderson <sgunderson@bigfoot.com> [Son Aug 10, 2008 at 05:03:28 +0200]:
> On Sun, Aug 10, 2008 at 04:35:23PM +0200, Fabrice Lorrain wrote:
> > I've just read through bts #409271 :"initramfs-tools: NFSv4 not  
> > supported for root fs"
> > and I'm interrested in knowing the status of this bug for lenny.

> AFAIK my understanding is: klibc's mount doesn't support NFSv4, initramfs
> insists on using klibc's mount, stalemate.

maks, we should discuss this issue in further details,
we be great if we could resolve this in time for squeeze.

regards,
-mika-
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Wed, 09 Jun 2010 03:15:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to maximilian attems <max@stro.at>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Wed, 09 Jun 2010 03:15:06 GMT) Full text and rfc822 format available.

Message #45 received at 409271@bugs.debian.org (full text, mbox):

From: maximilian attems <max@stro.at>
To: Michael Prokop <mika@debian.org>
Cc: "Steinar H. Gunderson" <sgunderson@bigfoot.com>, 409271@bugs.debian.org
Subject: Re: Bug#409271: Status of this bug ?
Date: Wed, 9 Jun 2010 04:25:09 +0200
On Tue, Jun 08, 2010 at 03:47:59PM +0200, Michael Prokop wrote:
> * Steinar H. Gunderson <sgunderson@bigfoot.com> [Son Aug 10, 2008 at 05:03:28 +0200]:
> > On Sun, Aug 10, 2008 at 04:35:23PM +0200, Fabrice Lorrain wrote:
> > > I've just read through bts #409271 :"initramfs-tools: NFSv4 not  
> > > supported for root fs"
> > > and I'm interrested in knowing the status of this bug for lenny.
> 
> > AFAIK my understanding is: klibc's mount doesn't support NFSv4, initramfs
> > insists on using klibc's mount, stalemate.
> 
> maks, we should discuss this issue in further details,
> we be great if we could resolve this in time for squeeze.

in a week i'm a back, but this is over ambitious.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Wed, 09 Jun 2010 10:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Prokop <mika@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Wed, 09 Jun 2010 10:57:03 GMT) Full text and rfc822 format available.

Message #50 received at 409271@bugs.debian.org (full text, mbox):

From: Michael Prokop <mika@debian.org>
To: maximilian attems <max@stro.at>
Cc: "Steinar H. Gunderson" <sgunderson@bigfoot.com>, 409271@bugs.debian.org
Subject: Re: Bug#409271: Status of this bug ?
Date: Wed, 9 Jun 2010 12:54:13 +0200
[Message part 1 (text/plain, inline)]
* maximilian attems <max@stro.at> [Wed Jun 09, 2010 at 04:25:09AM +0200]:
> On Tue, Jun 08, 2010 at 03:47:59PM +0200, Michael Prokop wrote:
> > * Steinar H. Gunderson <sgunderson@bigfoot.com> [Son Aug 10, 2008 at 05:03:28 +0200]:
> > > On Sun, Aug 10, 2008 at 04:35:23PM +0200, Fabrice Lorrain wrote:
> > > > I've just read through bts #409271 :"initramfs-tools: NFSv4 not  
> > > > supported for root fs"
> > > > and I'm interrested in knowing the status of this bug for lenny.

> > > AFAIK my understanding is: klibc's mount doesn't support NFSv4, initramfs
> > > insists on using klibc's mount, stalemate.

> > maks, we should discuss this issue in further details,
> > we be great if we could resolve this in time for squeeze.

> in a week i'm a back, but this is over ambitious.

Fair enoug,. though if we have a conclusion regarding
klibc<->libc<->busybox... solving this problem might not be that
much work. But yeah, let's discuss that when you're back.

thanks && regards,
-mika-
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Fri, 11 Mar 2011 10:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denny Schierz <linuxmail@4lin.net>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Fri, 11 Mar 2011 10:42:03 GMT) Full text and rfc822 format available.

Message #55 received at 409271@bugs.debian.org (full text, mbox):

From: Denny Schierz <linuxmail@4lin.net>
To: 409271@bugs.debian.org
Subject: Same to me
Date: Fri, 11 Mar 2011 11:29:51 +0100
[Message part 1 (text/plain, inline)]
hi,

we have the same problem. We need the security features form NFSv4 for
our diskless clients. I build the initramfs under Squeeze but it seems,
that it isn't working, if I tell Solaris to support only NFSv4.

So, how can I get the NFSv4 working ?

cu denny

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Wed, 23 Nov 2011 11:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Prokop <mika@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Wed, 23 Nov 2011 11:57:05 GMT) Full text and rfc822 format available.

Message #60 received at 409271@bugs.debian.org (full text, mbox):

From: Michael Prokop <mika@debian.org>
To: Denny Schierz <linuxmail@4lin.net>, 409271@bugs.debian.org
Cc: Jan-Marek Glogowski <glogow@fbihome.de>
Subject: Re: Bug#409271: Same to me
Date: Wed, 23 Nov 2011 12:55:59 +0100
[Message part 1 (text/plain, inline)]
[Adding Jan-Marek to Cc]

* Denny Schierz [Fri Mar 11, 2011 at 11:29:51AM +0100]:

> we have the same problem. We need the security features form NFSv4 for
> our diskless clients. I build the initramfs under Squeeze but it seems,
> that it isn't working, if I tell Solaris to support only NFSv4.

> So, how can I get the NFSv4 working ?

I'd like to see this issue resolved.

Jan-Marek, IIRC the company you're working for has some patches
addressing this issue. Is there any chance that you could share them
with us so we could provide official support for NFSv4 within
initramfs-tools?

regards,
-mika-
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#409271; Package initramfs-tools. (Tue, 17 Jan 2012 14:57:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Lange <lange@informatik.uni-koeln.de>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 17 Jan 2012 14:57:07 GMT) Full text and rfc822 format available.

Message #65 received at 409271@bugs.debian.org (full text, mbox):

From: Thomas Lange <lange@informatik.uni-koeln.de>
To: 409271@bugs.debian.org
Subject: dracut can do NFS v4
Date: Tue, 17 Jan 2012 15:48:59 +0100
Just for the record.

The dracut package has NFS v4 support. Maybe it's easier to use dracut
instead of waiting for klibc supporting it.
-- 
regards Thomas




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 16:21:51 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.