Is ubuntu24.04 supported by curtin?

Asked by Vladyslav Riabyk

Hello,
I am trying to provision a node using ubuntu24.04 and use curtin to configure it. First of all there is no curtin in default ubuntu24.04 apt repositories which is strange because it exists in 20.04 and 22.04. But okay, I downloaded the archieve from https://launchpad.net/curtin/+download .

I have well tested configuration file which was used with curtin-21.3 and ubuntu20.04. However it doesn't work when I try it on ubuntu24.04 and curtin-23.1.1 (I tried 21.3 too - no luck).

For example I am trying to setup software boot raid like this:
```
storage:
  version: 1
  config:
     - id: system_disk0
       type: disk
       ptable: msdos
       model: KXG60ZNV256G TOSHIBA
       serial: 31RY10AQYRU1
       grub_device: 1
       wipe: superblock
     - id: system_disk0_part_1
       type: partition
       offset: 4194304B
       size: 256056320000B
       device: system_disk0
       flag: bios_grub
       wipe: superblock
     - id: system_disk1
       type: disk
       ptable: msdos
       model: KXG60ZNV256G TOSHIBA
       serial: 31RY10AVYRU1
       grub_device: 1
       wipe: superblock
     - id: system_disk1_part_1
       type: partition
       offset: 4194304B
       size: 256056320000B
       device: system_disk1
       flag: bios_grub
       wipe: superblock
     - id: mddevice
       name: md0
       type: raid
       raidlevel: 1
       devices:
         - system_disk0_part_1
         - system_disk1_part_1
     - id: md_root
       type: format
       fstype: ext4
       volume: mddevice
     - id: md_mount
       type: mount
       path: /
       device: md_root
```

But getting weird error like:
```
Processing serial 31RY10AQYRU1 via udev to 31RY10AQYRU1
Processing serial 31RY10AVYRU1 via udev to 31RY10AVYRU1
Applying grub debconf_selections config:
{'debconf_selections': {'grub': 'grub-pc grub-pc/install_devices multiselect /dev/disk/by-id/nvme-KXG60ZNV256G_TOSHIBA_31RY10AQYRU1_1, /dev/disk/by-id/nvme-KXG60ZNV256G_TOSHIBA_31RY10AVYRU1_1'}}
The following packages were installed and preseeded, but cannot be unconfigured: ['grub-pc']
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpeje7rvcu/target', 'dpkg-reconfigure', 'grub-pc']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Installing for i386-pc platform.
        mdadm: cannot open /dev/md: No such file or directory
        grub-install: error: cannot open `/dev/md': No such file or directory.

builtin command failed
```

I double checked documentation, tried to apply different options - but no luck and `curtin install` fails always.

It works only if I specify single drive. create partition, install fs and mount.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu curtin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

I found this PPA here:
https://launchpad.net/~curtin-dev/+archive/ubuntu/daily?field.series_filter=noble

Comes with the usual caveats of a PPA

Revision history for this message
Vladyslav Riabyk (vriabyk) said :
#3

thank you for the reply!

What about error message which I shared above? it looks really weird to me, that's why I was even asking about full support of ubuntu24.04 in curtin.

Curtin configures drives, partitions and soft raid successfully. So I can see changes in `lsblk` and `cat /proc/mdstat`. But then it fails on dpkg-reconfigure grub-pc with error mentioning: " `/dev/md': No such file or directory." - which is absolutely expected, because it is `/dev/md0`.

Any ideas will be much appreciated.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.