Skip to contentSkip to conversation

Kernel options to boot root over NFS (kernel-4.1.fc22/linux-4.1.3-200.fc22.x86_64)

DISCUSSION Nestor Waldyd 3 participants 3 messages Aug 7, 2015

lore
Share & tools
lore
#0 lore raw

Hello,
I would like to compile a kernel bzImage in order to boot root over NFS. I am using the fedora kernel source package (kernel-4.1.fc22/linux-4.1.3-200.fc22.x86_64). What kernel options should i modify in Kernel Configuration in order to do so? (I have already configured both tftp and dhcp server, and PXELINUX) Best Regards,
Nestor Waldyd?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150807/e36bc8be/attachment.html

#1 lore raw
Quoted 8 lines · Nestor Waldyd

Hello,

I would like to compile a kernel bzImage in order to boot root over NFS. I am using the fedora kernel source package (kernel-4.1.fc22/linux-4.1.3-200.fc22.x86_64). What kernel options should i modify in Kernel Configuration in order to do so? (I have already configured both tftp and dhcp server, and PXELINUX)

Quoted 4 lines

Best Regards,

Nestor Waldyd

AFAIK, NFS client support needs to be selected as built-in during configuration.
Rest is through kernel command line parameters.

There is a good description in 'Documentation/filesystems/nfs/nfsroot.txt'

_______________________________________________

Quoted 5 lines

Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

~Chetan Nanda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150807/1982ba21/attachment.html

#2 lore raw
In reply to Nestor Waldyd
Quoted 4 lines · Nestor Waldyd

Hello,
I would like to compile a kernel bzImage in order to boot root over NFS. I am using the fedora kernel source package (kernel-4.1.fc22/linux-4.1.3-200.fc22.x86_64). What kernel options should i modify in Kernel Configuration in order to do so? (I have already configured both tftp and dhcp server, and PXELINUX) Best Regards,
Nestor Waldyd?

You'll need to enable CONFIG_ROOT_NFS which requires CONFIG_IP_PNP and CONFIG_NFS_FS to be enabled.