[Bug 2054482] [NEW] nfsroot=auto does not work, Ubuntu 22.04

Konstantin Olchanski 2054482 at bugs.launchpad.net
Tue Feb 20 22:59:57 UTC 2024


Public bug reported:

in scripts/nfs, there is provisions for nfsroot=auto to take NFSROOT
value from DHCP "root-path". But it does not work because DHCP root-path
option is not written to /run/net-enp1s0f0.conf by etc/dhcp/dhclient-
enter-hooks.d/config

to fix this, please add [echo "ROOTPATH='$new_root_path'"] somewhere in
etc/dhcp/dhclient-enter-hooks.d/config, rebuild the initrd, copy it to
/tftpboot, reboot NFSROOT client, observe
ROOTPATH='192.168.0.248:/nfsroot/dsfe05' is present in /run/net-
enp1s0f0.conf, change pxelinux config file to say nfsroot=auto, it will
work now.

emacs -nw /usr/lib/initramfs-tools/etc/dhcp/dhclient-enter-hooks.d/config
...
                echo "ROOTSERVER='${new_routers%% *}'"
add this ---->  echo "ROOTPATH='$new_root_path'"
                echo "HOSTNAME='$new_host_name'"
                echo "DNSDOMAIN='$new_domain_name'"
...

K.O.

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  nfsroot=auto does not work, Ubuntu 22.04

Status in initramfs-tools package in Ubuntu:
  New

Bug description:
  in scripts/nfs, there is provisions for nfsroot=auto to take NFSROOT
  value from DHCP "root-path". But it does not work because DHCP root-
  path option is not written to /run/net-enp1s0f0.conf by
  etc/dhcp/dhclient-enter-hooks.d/config

  to fix this, please add [echo "ROOTPATH='$new_root_path'"] somewhere
  in etc/dhcp/dhclient-enter-hooks.d/config, rebuild the initrd, copy it
  to /tftpboot, reboot NFSROOT client, observe
  ROOTPATH='192.168.0.248:/nfsroot/dsfe05' is present in /run/net-
  enp1s0f0.conf, change pxelinux config file to say nfsroot=auto, it
  will work now.

  emacs -nw /usr/lib/initramfs-tools/etc/dhcp/dhclient-enter-hooks.d/config
  ...
                  echo "ROOTSERVER='${new_routers%% *}'"
  add this ---->  echo "ROOTPATH='$new_root_path'"
                  echo "HOSTNAME='$new_host_name'"
                  echo "DNSDOMAIN='$new_domain_name'"
  ...

  K.O.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2054482/+subscriptions




More information about the foundations-bugs mailing list