[Bug 1876258] Re: ubuntu 20.04 pxe installation fails with no such file or directory /dev/disk/by-id exception

Mike EKlund 1876258 at bugs.launchpad.net
Tue Jul 21 14:24:42 UTC 2020


I got the same error via pxe and manual install on vmware.  If I use the
default lvm partitioning it works, if I use manual non-LVM partitioning
it fails.

i.e. this works:

 storage:
    swap:
      size: 0
    config:
    - {ptable: gpt, path: /dev/sda, wipe: superblock, preserve: false, name: '', grub_device: true,
      type: disk, id: disk-sda}
    - {device: disk-sda, size: 1M, flag: bios_grub, number: 1, preserve: false,
      type: partition, id: partition-0}
    - {device: disk-sda, size: 1G , wipe: superblock, flag: '', number: 2,
      preserve: false, type: partition, id: partition-1}
    - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-0}
    - {device: disk-sda, size: -1 , wipe: superblock, flag: '', number: 3,
      preserve: false, type: partition, id: partition-2}
    - name: ubuntu-vg
      devices: [partition-2]
      preserve: false
      type: lvm_volgroup
      id: lvm_volgroup-0
    - {name: ubuntu-lv, volgroup: lvm_volgroup-0, size: 16101933056B, preserve: false,
      type: lvm_partition, id: lvm_partition-0}
    - {fstype: ext4, volume: lvm_partition-0, preserve: false, type: format, id: format-1}
    - {device: format-1, path: /, type: mount, id: mount-1}
    - {device: format-0, path: /boot, type: mount, id: mount-0}

This does not:

  storage:
    swap:
      size: 0
    config:
    - {ptable: gpt, path: /dev/sda, wipe: superblock, preserve: false, name: '', grub_device: true,
      type: disk, id: disk-sda}
    - {device: disk-sda, size: 1M, flag: bios_grub, number: 1, preserve: false,
      type: partition, id: partition-0}
    - {device: disk-sda, size: 1G , wipe: superblock, flag: '', number: 2,
      preserve: false, type: partition, id: partition-1}
    - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-0}
    - {device: disk-sda, size: -1 , wipe: superblock, flag: '', number: 3,
      preserve: false, type: partition, id: partition-2}
    - {fstype: ext4, volume: partition-2, preserve: false, type: format, id: format-1}
    - {device: format-1, path: /, type: mount, id: mount-1}
    - {device: format-0, path: /boot, type: mount, id: mount-0}

** Attachment added: "curtin-error-logs.tar.gz"
   https://bugs.launchpad.net/curtin/+bug/1876258/+attachment/5394631/+files/curtin-error-logs.tar.gz

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

Title:
  ubuntu 20.04 pxe installation fails with no such file or directory
  /dev/disk/by-id exception

Status in curtin:
  Incomplete
Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  The `configure_grub_debconf` function tries to find a by-id path of
  the boot device.

  The problem is though - when I run ubuntu 20.04 live cd via PXE -
  there is no `/dev/disk/by-id` there are only

  1) by-label
  2) by-partuuid
  3) by-path
  4) by-uuid

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



More information about the foundations-bugs mailing list