[Bug 2101853] Re: Install trying to use partition other than #1 for /boot fails with error.

Matthew Steele 2101853 at bugs.launchpad.net
Mon Mar 17 21:08:22 UTC 2025


Note that this can be worked around if the first partition has a
definition in the user-data configuration, even if it isn't used at all
during the install. From my initial example, adding this stanza to user-
data appears to work around the problem:

      - id: disk0-dummy
        type: partition
        number: 1
        device: disk0
        flag: boot
        size: 254803968
        resize: false
        preserve: true
        grub_device: false

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

Title:
  Install trying to use partition other than #1 for /boot fails with
  error.

Status in subiquity package in Ubuntu:
  New

Bug description:
  Ubuntu 24.04.2

  Doing an unattended install where the partition specified for /boot is
  other than the first one, subiquity fails with the following error:

  An error occured handling 'disk0-boot': RuntimeError - Cannot find previous partition on disk /dev/disk/by-id/scsi-35000c5008ce144a0
  finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: disk0-boot

  -----------

  #cloud-config
  autoinstall:
    version: 1
    refresh-installer:
      update: false
    early-commands:
      - /custom-installation/pre.sh
    late-commands:
      - /custom-installation/post.sh
    ssh:
      install-server: true
    storage:
      version: 2
      config:
        - id: disk0
          type: device
          path: /dev/disk/by-id/scsi-35000c5008ce144a0
          grub_device: false
          preserve: true
        - id: disk0-boot
          type: partition
          number: 3
          device: disk0
          flag: boot
          size: 255852544
          preserve: false
          resize: false
          grub_device: true
        - id: disk0-root
          type: partition
          number: 8
          device: disk0
          preserve: true
          resize: false
          size: 10000269312
          grub_device: false
        - id: disk0-boot-format
          type: format
          preserve: false
          fstype: vfat
          volume: disk0-boot
        - id: disk0-root-format
          type: format
          fstype: ext4
          preserve: false
          volume: disk0-root
        - id: disk0-root-mount
          type: mount
          device: disk0-root-format
          path: /
        - id: disk0-boot-mount
          type: mount
          device: disk0-boot-format
          path: /boot/efi
        - id: disk0-swap
          type: partition
          size: 10000269312
          preserve: true
          resize: false
          number: 6
          device: disk0
          grub_device: false
        - id: disk0-swap-format
          type: format
          fstype: swap
          preserve: true
          volume: disk0-swap
        - id: disk0-swap-mount
          type: mount
          device: disk0-swap-format
          path: none
    user-data:
      packages:
      - nfs-common
      - net-tools
      runcmd:
        - /etc/confluent/firstboot.sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2101853/+subscriptions




More information about the foundations-bugs mailing list