[Bug 2056187] Re: fails to configure BOOTIF when using iscsi

Victor Sartori 2056187 at bugs.launchpad.net
Fri Mar 8 18:32:08 UTC 2024


Hello all,

I'm currently testing a patch to generate an initrd image for MAAS with
partial success.

The fix for the network is working well. However, when attempting to
start a server via PXE using MAAS, strange errors are raised:

Warning: Type of the root file system is unknown, so skipping the check.
mount: bad address 'squash'

This leads to an initramfs prompt.

Here are the steps I follow to generate an initramfs:

1. Apply the patch to the script based on /usr/share/initramfs-tools/scripts.
2. Run the mkinitramfs command.
3. Copy the new initrd file to MAAS.
4. Start the server to boot by network.

I couldn't find clear documentation regarding generation and
troubleshooting. Additionally, I'm unsure if this is the right place to
ask questions about this issue.

-- 
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/2056187

Title:
  fails to configure BOOTIF when using iscsi

Status in initramfs-tools package in Ubuntu:
  Fix Committed
Status in open-iscsi package in Ubuntu:
  Invalid

Bug description:
  we have a bad interaction between initramfs-tools and open-iscsi,
  resulting in the boot interface not being configured.

  when the iscsi has a static address, the script `local-top/iscsi` from
  open-iscsi creates a /run/net-$DEVICE.conf file for the iscsi
  interface. The existence of this file makes configure_networking()
  skip configuring the BOOTIF later due to this code in
  `scripts/functions`:

          for x in /run/net-"${DEVICE}".conf /run/net-*.conf ; do
              if [ -e "$x" ]; then
                  IP=done
                  break
              fi
          done

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




More information about the foundations-bugs mailing list