Skip to content

Crash when selecting a partition to encrypt after manual partitionning #4162

@dzamlo

Description

@dzamlo

Which ISO version are you using?

latest from git

The installation log

Fetching Arch Linux package database...
╭─────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────╮
│ /home/dzamlo/projects/archinstall/archinstall/tui/ui/components.py:920 in on_mount                                                                       │
│                                                                                                                                                          │
│    917 │   │   data_table.cell_padding = 2                                                      ╭───────────────── locals ─────────────────╮             │
│    918 │   │                                                                                    │ data_table = _DataTable(id='data_table') │             │
│    919 │   │   if self._group:                                                                  │       self = TableSelectionScreen()      │             │
│ ❱  920 │   │   │   self._put_data_to_table(data_table, self._group)                             ╰──────────────────────────────────────────╯             │
│    921 │   │   else:                                                                                                                                     │
│    922 │   │   │   self._load_data(data_table)                                                                                                           │
│    923                                                                                                                                                   │
│                                                                                                                                                          │
│ /home/dzamlo/projects/archinstall/archinstall/tui/ui/components.py:971 in _put_data_to_table                                                             │
│                                                                                                                                                          │
│    968 │   │   │   │   else:                                                                                                                             │
│    969 │   │   │   │   │   row_values.insert(0, '[ ]')                                                                                                   │
│    970 │   │   │                                                                                                                                         │
│ ❱  971 │   │   │   row_key = table.add_row(*row_values, key=item)  # type: ignore[arg-type]                                                              │
│    972 │   │   │   if item in selected:                                                                                                                  │
│    973 │   │   │   │   self._selected_keys.add(row_key)                                                                                                  │
│    974                                                                                                                                                   │
│                                                                                                                                                          │
│ ╭───────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────╮                     │
│ │       cols = ['   ', 'Status', 'Device', 'Type', 'Start', 'End', 'Size', 'FS type', 'Mountpoint', 'Mount options', ... +1]       │                     │
│ │      group = <archinstall.tui.ui.menu_item.MenuItemGroup object at 0x7f78137e7150>                                               │                     │
│ │       item = MenuItem(                                                                                                           │                     │
│ │              │   text='140153778534544',                                                                                         │                     │
│ │              │   value=PartitionModification(                                                                                    │                     │
│ │              │   │   status=<ModificationStatus.Create: 'create'>,                                                               │                     │
│ │              │   │   type=<PartitionType.Primary: 'primary'>,                                                                    │                     │
│ │              │   │   start=Size(value=1074790400, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),        │                     │
│ │              │   │   length=Size(value=20398997504, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),      │                     │
│ │              │   │   fs_type=<FilesystemType.Btrfs: 'btrfs'>,                                                                    │                     │
│ │              │   │   mountpoint=None,                                                                                            │                     │
│ │              │   │   mount_options=['compress=zstd'],                                                                            │                     │
│ │              │   │   flags=[],                                                                                                   │                     │
│ │              │   │   btrfs_subvols=[                                                                                             │                     │
│ │              │   │   │   SubvolumeModification(name=PosixPath('@'), mountpoint=PosixPath('/')),                                  │                     │
│ │              │   │   │   SubvolumeModification(name=PosixPath('@home'), mountpoint=PosixPath('/home')),                          │                     │
│ │              │   │   │   SubvolumeModification(name=PosixPath('@log'), mountpoint=PosixPath('/var/log')),                        │                     │
│ │              │   │   │   SubvolumeModification(name=PosixPath('@pkg'), mountpoint=PosixPath('/var/cache/pacman/pkg'))            │                     │
│ │              │   │   ],                                                                                                          │                     │
│ │              │   │   dev_path=None,                                                                                              │                     │
│ │              │   │   partn=None,                                                                                                 │                     │
│ │              │   │   partuuid=None,                                                                                              │                     │
│ │              │   │   uuid=None,                                                                                                  │                     │
│ │              │   │   _obj_id=UUID('ac5c85a6-180f-437a-924e-6a08fe491ab8')                                                        │                     │
│ │              │   ),                                                                                                              │                     │
│ │              │   action=None,                                                                                                    │                     │
│ │              │   enabled=True,                                                                                                   │                     │
│ │              │   read_only=False,                                                                                                │                     │
│ │              │   mandatory=False,                                                                                                │                     │
│ │              │   dependencies=[],                                                                                                │                     │
│ │              │   dependencies_not=[],                                                                                            │                     │
│ │              │   display_action=None,                                                                                            │                     │
│ │              │   preview_action=None,                                                                                            │                     │
│ │              │   key=None,                                                                                                       │                     │
│ │              │   _id='140153706165568'                                                                                           │                     │
│ │              )                                                                                                                   │                     │
│ │      items = [                                                                                                                   │                     │
│ │              │   MenuItem(                                                                                                       │                     │
│ │              │   │   text='140153778534864',                                                                                     │                     │
│ │              │   │   value=PartitionModification(                                                                                │                     │
│ │              │   │   │   status=<ModificationStatus.Create: 'create'>,                                                           │                     │
│ │              │   │   │   type=<PartitionType.Primary: 'primary'>,                                                                │                     │
│ │              │   │   │   start=Size(value=1, unit=<Unit.MiB: 1048576>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),     │                     │
│ │              │   │   │   length=Size(                                                                                            │                     │
│ │              │   │   │   │   value=1,                                                                                            │                     │
│ │              │   │   │   │   unit=<Unit.GiB: 1073741824>,                                                                        │                     │
│ │              │   │   │   │   sector_size=SectorSize(value=512, unit=<Unit.B: 1>)                                                 │                     │
│ │              │   │   │   ),                                                                                                      │                     │
│ │              │   │   │   fs_type=<FilesystemType.Fat32: 'fat32'>,                                                                │                     │
│ │              │   │   │   mountpoint=PosixPath('/efi'),                                                                           │                     │
│ │              │   │   │   mount_options=[],                                                                                       │                     │
│ │              │   │   │   flags=[<PartitionFlag.BOOT: flag_id=1, alias=None>, <PartitionFlag.ESP: flag_id=18, alias=None>],       │                     │
│ │              │   │   │   btrfs_subvols=[],                                                                                       │                     │
│ │              │   │   │   dev_path=None,                                                                                          │                     │
│ │              │   │   │   partn=None,                                                                                             │                     │
│ │              │   │   │   partuuid=None,                                                                                          │                     │
│ │              │   │   │   uuid=None,                                                                                              │                     │
│ │              │   │   │   _obj_id=UUID('9adc8377-19c8-4d3f-a718-54c19bd7ce04')                                                    │                     │
│ │              │   │   ),                                                                                                          │                     │
│ │              │   │   action=None,                                                                                                │                     │
│ │              │   │   enabled=True,                                                                                               │                     │
│ │              │   │   read_only=False,                                                                                            │                     │
│ │              │   │   mandatory=False,                                                                                            │                     │
│ │              │   │   dependencies=[],                                                                                            │                     │
│ │              │   │   dependencies_not=[],                                                                                        │                     │
│ │              │   │   display_action=None,                                                                                        │                     │
│ │              │   │   preview_action=None,                                                                                        │                     │
│ │              │   │   key=None,                                                                                                   │                     │
│ │              │   │   _id='140153777470144'                                                                                       │                     │
│ │              │   ),                                                                                                              │                     │
│ │              │   MenuItem(                                                                                                       │                     │
│ │              │   │   text='140153778534544',                                                                                     │                     │
│ │              │   │   value=PartitionModification(                                                                                │                     │
│ │              │   │   │   status=<ModificationStatus.Create: 'create'>,                                                           │                     │
│ │              │   │   │   type=<PartitionType.Primary: 'primary'>,                                                                │                     │
│ │              │   │   │   start=Size(value=1074790400, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),    │                     │
│ │              │   │   │   length=Size(value=20398997504, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),  │                     │
│ │              │   │   │   fs_type=<FilesystemType.Btrfs: 'btrfs'>,                                                                │                     │
│ │              │   │   │   mountpoint=None,                                                                                        │                     │
│ │              │   │   │   mount_options=['compress=zstd'],                                                                        │                     │
│ │              │   │   │   flags=[],                                                                                               │                     │
│ │              │   │   │   btrfs_subvols=[                                                                                         │                     │
│ │              │   │   │   │   SubvolumeModification(name=PosixPath('@'), mountpoint=PosixPath('/')),                              │                     │
│ │              │   │   │   │   SubvolumeModification(name=PosixPath('@home'), mountpoint=PosixPath('/home')),                      │                     │
│ │              │   │   │   │   SubvolumeModification(name=PosixPath('@log'), mountpoint=PosixPath('/var/log')),                    │                     │
│ │              │   │   │   │   SubvolumeModification(name=PosixPath('@pkg'), mountpoint=PosixPath('/var/cache/pacman/pkg'))        │                     │
│ │              │   │   │   ],                                                                                                      │                     │
│ │              │   │   │   dev_path=None,                                                                                          │                     │
│ │              │   │   │   partn=None,                                                                                             │                     │
│ │              │   │   │   partuuid=None,                                                                                          │                     │
│ │              │   │   │   uuid=None,                                                                                              │                     │
│ │              │   │   │   _obj_id=UUID('ac5c85a6-180f-437a-924e-6a08fe491ab8')                                                    │                     │
│ │              │   │   ),                                                                                                          │                     │
│ │              │   │   action=None,                                                                                                │                     │
│ │              │   │   enabled=True,                                                                                               │                     │
│ │              │   │   read_only=False,                                                                                            │                     │
│ │              │   │   mandatory=False,                                                                                            │                     │
│ │              │   │   dependencies=[],                                                                                            │                     │
│ │              │   │   dependencies_not=[],                                                                                        │                     │
│ │              │   │   display_action=None,                                                                                        │                     │
│ │              │   │   preview_action=None,                                                                                        │                     │
│ │              │   │   key=None,                                                                                                   │                     │
│ │              │   │   _id='140153706165568'                                                                                       │                     │
│ │              │   )                                                                                                               │                     │
│ │              ]                                                                                                                   │                     │
│ │    row_key = RowKey(                                                                                                             │                     │
│ │              │   value=MenuItem(                                                                                                 │                     │
│ │              │   │   text='140153778534864',                                                                                     │                     │
│ │              │   │   value=PartitionModification(                                                                                │                     │
│ │              │   │   │   status=<ModificationStatus.Create: 'create'>,                                                           │                     │
│ │              │   │   │   type=<PartitionType.Primary: 'primary'>,                                                                │                     │
│ │              │   │   │   start=Size(value=1, unit=<Unit.MiB: 1048576>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),     │                     │
│ │              │   │   │   length=Size(                                                                                            │                     │
│ │              │   │   │   │   value=1,                                                                                            │                     │
│ │              │   │   │   │   unit=<Unit.GiB: 1073741824>,                                                                        │                     │
│ │              │   │   │   │   sector_size=SectorSize(value=512, unit=<Unit.B: 1>)                                                 │                     │
│ │              │   │   │   ),                                                                                                      │                     │
│ │              │   │   │   fs_type=<FilesystemType.Fat32: 'fat32'>,                                                                │                     │
│ │              │   │   │   mountpoint=PosixPath('/efi'),                                                                           │                     │
│ │              │   │   │   mount_options=[],                                                                                       │                     │
│ │              │   │   │   flags=[<PartitionFlag.BOOT: flag_id=1, alias=None>, <PartitionFlag.ESP: flag_id=18, alias=None>],       │                     │
│ │              │   │   │   btrfs_subvols=[],                                                                                       │                     │
│ │              │   │   │   dev_path=None,                                                                                          │                     │
│ │              │   │   │   partn=None,                                                                                             │                     │
│ │              │   │   │   partuuid=None,                                                                                          │                     │
│ │              │   │   │   uuid=None,                                                                                              │                     │
│ │              │   │   │   _obj_id=UUID('9adc8377-19c8-4d3f-a718-54c19bd7ce04')                                                    │                     │
│ │              │   │   ),                                                                                                          │                     │
│ │              │   │   action=None,                                                                                                │                     │
│ │              │   │   enabled=True,                                                                                               │                     │
│ │              │   │   read_only=False,                                                                                            │                     │
│ │              │   │   mandatory=False,                                                                                            │                     │
│ │              │   │   dependencies=[],                                                                                            │                     │
│ │              │   │   dependencies_not=[],                                                                                        │                     │
│ │              │   │   display_action=None,                                                                                        │                     │
│ │              │   │   preview_action=None,                                                                                        │                     │
│ │              │   │   key=None,                                                                                                   │                     │
│ │              │   │   _id='140153777470144'                                                                                       │                     │
│ │              │   )                                                                                                               │                     │
│ │              )                                                                                                                   │                     │
│ │ row_values = ['[ ]', 'create', '', 'primary', '2099200', '41940992', '19 GiB', 'btrfs', '', 'compress=zstd', ... +2]             │                     │
│ │   selected = []                                                                                                                  │                     │
│ │       self = TableSelectionScreen()                                                                                              │                     │
│ │      table = _DataTable(id='data_table')                                                                                         │                     │
│ │      value = PartitionModification(                                                                                              │                     │
│ │              │   status=<ModificationStatus.Create: 'create'>,                                                                   │                     │
│ │              │   type=<PartitionType.Primary: 'primary'>,                                                                        │                     │
│ │              │   start=Size(value=1, unit=<Unit.MiB: 1048576>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),             │                     │
│ │              │   length=Size(value=1, unit=<Unit.GiB: 1073741824>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),         │                     │
│ │              │   fs_type=<FilesystemType.Fat32: 'fat32'>,                                                                        │                     │
│ │              │   mountpoint=PosixPath('/efi'),                                                                                   │                     │
│ │              │   mount_options=[],                                                                                               │                     │
│ │              │   flags=[<PartitionFlag.BOOT: flag_id=1, alias=None>, <PartitionFlag.ESP: flag_id=18, alias=None>],               │                     │
│ │              │   btrfs_subvols=[],                                                                                               │                     │
│ │              │   dev_path=None,                                                                                                  │                     │
│ │              │   partn=None,                                                                                                     │                     │
│ │              │   partuuid=None,                                                                                                  │                     │
│ │              │   uuid=None,                                                                                                      │                     │
│ │              │   _obj_id=UUID('9adc8377-19c8-4d3f-a718-54c19bd7ce04')                                                            │                     │
│ │              )                                                                                                                   │                     │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                     │
│                                                                                                                                                          │
│ /home/dzamlo/projects/archinstall/.venv/lib/python3.14/site-packages/textual/widgets/_data_table.py:1699 in add_row                                      │
│                                                                                                                                                          │
│   1696 │   │   #  Before they call add_row.                                                                                                              │
│   1697 │   │                                                                                                                                             │
│   1698 │   │   if len(cells) > len(self.ordered_columns):                                                                                                │
│ ❱ 1699 │   │   │   raise ValueError("More values provided than there are columns.")                                                                      │
│   1700 │   │                                                                                                                                             │
│   1701 │   │   row_index = self.row_count                                                                                                                │
│   1702 │   │   # Map the key of this row to its current index                                                                                            │
│                                                                                                                                                          │
│ ╭─────────────────────────────────────────────────────────── locals ───────────────────────────────────────────────────────────╮                         │
│ │   cells = ('[ ]', 'create', '', 'primary', '2099200', '41940992', '19 GiB', 'btrfs', '', 'compress=zstd', ... +2)            │                         │
│ │  height = 1                                                                                                                  │                         │
│ │     key = MenuItem(                                                                                                          │                         │
│ │           │   text='140153778534544',                                                                                        │                         │
│ │           │   value=PartitionModification(                                                                                   │                         │
│ │           │   │   status=<ModificationStatus.Create: 'create'>,                                                              │                         │
│ │           │   │   type=<PartitionType.Primary: 'primary'>,                                                                   │                         │
│ │           │   │   start=Size(value=1074790400, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),       │                         │
│ │           │   │   length=Size(value=20398997504, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),     │                         │
│ │           │   │   fs_type=<FilesystemType.Btrfs: 'btrfs'>,                                                                   │                         │
│ │           │   │   mountpoint=None,                                                                                           │                         │
│ │           │   │   mount_options=['compress=zstd'],                                                                           │                         │
│ │           │   │   flags=[],                                                                                                  │                         │
│ │           │   │   btrfs_subvols=[                                                                                            │                         │
│ │           │   │   │   SubvolumeModification(name=PosixPath('@'), mountpoint=PosixPath('/')),                                 │                         │
│ │           │   │   │   SubvolumeModification(name=PosixPath('@home'), mountpoint=PosixPath('/home')),                         │                         │
│ │           │   │   │   SubvolumeModification(name=PosixPath('@log'), mountpoint=PosixPath('/var/log')),                       │                         │
│ │           │   │   │   SubvolumeModification(name=PosixPath('@pkg'), mountpoint=PosixPath('/var/cache/pacman/pkg'))           │                         │
│ │           │   │   ],                                                                                                         │                         │
│ │           │   │   dev_path=None,                                                                                             │                         │
│ │           │   │   partn=None,                                                                                                │                         │
│ │           │   │   partuuid=None,                                                                                             │                         │
│ │           │   │   uuid=None,                                                                                                 │                         │
│ │           │   │   _obj_id=UUID('ac5c85a6-180f-437a-924e-6a08fe491ab8')                                                       │                         │
│ │           │   ),                                                                                                             │                         │
│ │           │   action=None,                                                                                                   │                         │
│ │           │   enabled=True,                                                                                                  │                         │
│ │           │   read_only=False,                                                                                               │                         │
│ │           │   mandatory=False,                                                                                               │                         │
│ │           │   dependencies=[],                                                                                               │                         │
│ │           │   dependencies_not=[],                                                                                           │                         │
│ │           │   display_action=None,                                                                                           │                         │
│ │           │   preview_action=None,                                                                                           │                         │
│ │           │   key=None,                                                                                                      │                         │
│ │           │   _id='140153706165568'                                                                                          │                         │
│ │           )                                                                                                                  │                         │
│ │   label = None                                                                                                               │                         │
│ │ row_key = RowKey(                                                                                                            │                         │
│ │           │   value=MenuItem(                                                                                                │                         │
│ │           │   │   text='140153778534544',                                                                                    │                         │
│ │           │   │   value=PartitionModification(                                                                               │                         │
│ │           │   │   │   status=<ModificationStatus.Create: 'create'>,                                                          │                         │
│ │           │   │   │   type=<PartitionType.Primary: 'primary'>,                                                               │                         │
│ │           │   │   │   start=Size(value=1074790400, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)),   │                         │
│ │           │   │   │   length=Size(                                                                                           │                         │
│ │           │   │   │   │   value=20398997504,                                                                                 │                         │
│ │           │   │   │   │   unit=<Unit.B: 1>,                                                                                  │                         │
│ │           │   │   │   │   sector_size=SectorSize(value=512, unit=<Unit.B: 1>)                                                │                         │
│ │           │   │   │   ),                                                                                                     │                         │
│ │           │   │   │   fs_type=<FilesystemType.Btrfs: 'btrfs'>,                                                               │                         │
│ │           │   │   │   mountpoint=None,                                                                                       │                         │
│ │           │   │   │   mount_options=['compress=zstd'],                                                                       │                         │
│ │           │   │   │   flags=[],                                                                                              │                         │
│ │           │   │   │   btrfs_subvols=[                                                                                        │                         │
│ │           │   │   │   │   SubvolumeModification(name=PosixPath('@'), mountpoint=PosixPath('/')),                             │                         │
│ │           │   │   │   │   SubvolumeModification(name=PosixPath('@home'), mountpoint=PosixPath('/home')),                     │                         │
│ │           │   │   │   │   SubvolumeModification(name=PosixPath('@log'), mountpoint=PosixPath('/var/log')),                   │                         │
│ │           │   │   │   │   SubvolumeModification(name=PosixPath('@pkg'), mountpoint=PosixPath('/var/cache/pacman/pkg'))       │                         │
│ │           │   │   │   ],                                                                                                     │                         │
│ │           │   │   │   dev_path=None,                                                                                         │                         │
│ │           │   │   │   partn=None,                                                                                            │                         │
│ │           │   │   │   partuuid=None,                                                                                         │                         │
│ │           │   │   │   uuid=None,                                                                                             │                         │
│ │           │   │   │   _obj_id=UUID('ac5c85a6-180f-437a-924e-6a08fe491ab8')                                                   │                         │
│ │           │   │   ),                                                                                                         │                         │
│ │           │   │   action=None,                                                                                               │                         │
│ │           │   │   enabled=True,                                                                                              │                         │
│ │           │   │   read_only=False,                                                                                           │                         │
│ │           │   │   mandatory=False,                                                                                           │                         │
│ │           │   │   dependencies=[],                                                                                           │                         │
│ │           │   │   dependencies_not=[],                                                                                       │                         │
│ │           │   │   display_action=None,                                                                                       │                         │
│ │           │   │   preview_action=None,                                                                                       │                         │
│ │           │   │   key=None,                                                                                                  │                         │
│ │           │   │   _id='140153706165568'                                                                                      │                         │
│ │           │   )                                                                                                              │                         │
│ │           )                                                                                                                  │                         │
│ │    self = _DataTable(id='data_table')                                                                                        │                         │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: More values provided than there are columns.

describe the problem

Description of the issue

  1. Disk configuration
  2. Partitioning
  3. Manual
  4. Select the device
  5. use suggest partition layout
  6. Assign another mount point to the /boot partition (for example /efi)
  7. Choose confirm and exit
  8. Select Disk encryption
  9. Choose LUKS as encryption type
  10. Open the Partitions menu
  11. crash

After using git bisect it seems that this issue was introduced by commit 0aca992 (PR #3997)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions