Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

autoinstall late-commands always fail #2401

@jamesps-ebi

Description

@jamesps-ebi

What happened?

When installing a system using the Desktop ISO (e.g. 23.10.1 Mantic Desktop ISO) and using an autoinstall, any late-commands that are run within the target system (curtin in-target -- ) is generating the errors.

What was expected?

Commands in the late-commands section should run without failing.

The same commands run on a server ISO install do not produce errors.

Steps to reproduce

  • Generate a simple autoinstall yaml
autoinstall:
  version: 1
  interactive-sections:
    - keyboard
    - network
  locale: en_GB.UTF-8
  keyboard:
    layout: gb
  kernel:
    flavor: hwe
  identity:
    hostname: unassigned-hostname
    username: test123
    realname: Test User
    password: 'pwd_hash_here'
  storage:
    grub:
      reorder_uefi: false
    layout:
      name: lvm
  user-data:
    timezone: Europe/London
  late-commands:
    - curtin in-target --target=/target -- echo testing123 > /etc/hostname
  • Download and run 23.10.1 desktop installer with the autoinstall yaml
  • Wait for install to complete and you will see an error pop up. From the logs, you can see the late-commands will have failed.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions