Autoinstall with an interactive section wouldn't execute "shutdown: poweroff" on 22.04 srv

Bug #2052892 reported by Boris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

Configuring autoinstall for Ubuntu 22.04 server.

Here's my user-data config. Network installer section is enabled and "shutdown: poweroff" stopped working as it did in a fully automated mode.

The issue persists with or without the cloud-init section.

#cloud-config
autoinstall:
  version: 1
  identity:
    hostname: u22circleci01
    username: ubuntuuser
    password: ubuntupass
  ssh:
    install-server: yes
    allow-pw: yes
  apt:
    fallback: offline-install
  interactive-sections:
    - network
  late-commands:
    - lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
    - resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
    - curtin in-target --target=/target -- sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=""/GRUB_CMDLINE_LINUX_DEFAULT="cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0 pci=realloc"/' /etc/default/grub
    - curtin in-target --target=/target -- update-grub
  shutdown: poweroff

  user-data:
    write_files:
     - path: /opt/payload_2test.sh
       permissions: '0755'
       content: |
         #!/bin/bash
         echo 'payload 2 test script running $(date "+%H:%M:%S")' >> /var/log/payload.log
    runcmd:
      - chmod +x /opt/*.sh
      - ./opt/payloadtest.sh >> /var/log/payload.log
    package-upgrade: false

Revision history for this message
Ken Sharp (kennybobs) wrote :

Why on Earth have you logged this against nvidia-graphics-drivers-304?

tags: added: jammy
affects: nvidia-graphics-drivers-304 (Ubuntu) → ubuntu
Paul White (paulw2u)
affects: ubuntu → subiquity (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.