← Back to team overview

curtin-dev team mailing list archive

[Bug 1896758] [NEW] grub_device ignored when args.devices != 0 and args.devices > 1

 

Public bug reported:

When deploying a server with more than 1 disk, using whole disk images,
the selected boot device from storage configuration is ignored, and
curtin writes the disk image to the first block device in the list.

The devpath is correctly identified here:

https://git.launchpad.net/curtin/tree/curtin/commands/block_meta.py#n1950

and it is completely ignored, because len(devices) is > 1, and it
selects the first disk from the list of a sorted args.devices here:

https://git.launchpad.net/curtin/tree/curtin/commands/block_meta.py#n1997

** Affects: curtin
     Importance: Undecided
         Status: New

** Summary changed:

- grub_device ignored when args.devices != 0
+ grub_device ignored when args.devices != 0 and args.devices > 1

-- 
You received this bug notification because you are a member of curtin
developers, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1896758

Title:
  grub_device ignored when args.devices != 0 and args.devices > 1

Status in curtin:
  New

Bug description:
  When deploying a server with more than 1 disk, using whole disk
  images, the selected boot device from storage configuration is
  ignored, and curtin writes the disk image to the first block device in
  the list.

  The devpath is correctly identified here:

  https://git.launchpad.net/curtin/tree/curtin/commands/block_meta.py#n1950

  and it is completely ignored, because len(devices) is > 1, and it
  selects the first disk from the list of a sorted args.devices here:

  https://git.launchpad.net/curtin/tree/curtin/commands/block_meta.py#n1997

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1896758/+subscriptions