grub2 on NFS root

General support questions
Post Reply
cc_smart
Posts: 2
Joined: 2019/10/02 12:11:36

grub2 on NFS root

Post by cc_smart » 2019/10/02 12:39:35

Greetings.
State is a successful booted system with grub and /boot on (virual) blockdevice / disc and / on NFS by way of kernel parameters manually added to /boot/grubs/grub.cfg
The relavant addtitions have been mad to /etc/default/grub for reuse.
Trying to run grub2-mkconfig -o /boot/grub2/grub.cfg for verification returns:

/usr/sbin/grub2-probe: error: failed to get canonical path of <NFSserver>:</srv/nfsclient/root>

i have fojund little related information on the Internet, but it seems to point towards grub2-mkconfig expecting a block device due to not being able to recognize NFS root. (https://build.opensuse.org/package/view ... h?expand=1)

Any advice to fix the problem ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: grub2 on NFS root

Post by TrevorH » 2019/10/02 14:44:32

How are you expecting grub to boot from an NFS share?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cc_smart
Posts: 2
Joined: 2019/10/02 12:11:36

Re: grub2 on NFS root

Post by cc_smart » 2019/10/09 09:16:49

>State is a successful booted system<

>with grub and /boot on (virual) blockdevice / disc and / on NFS <

The problem is not booting. The problem is having grub2-mkconfig / grub2-probe doing the right thing with that setup so the config is persistent and works well with updates.
Doing the right thing in this case means not interpreting the source as a block device with the intention to create sth block device style for root=/dev/nfs and nfsroot kernelparameters.

Post Reply