[Bug 2052892] [NEW] Autoinstall with an interactive section wouldn't execute "shutdown: poweroff" on 22.04 srv

Launchpad Bug Tracker 2052892 at bugs.launchpad.net
Sun Mar 17 13:23:29 UTC 2024


You have been subscribed to a public bug:

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

** Affects: subiquity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: autoinstall jammy
-- 
Autoinstall with an interactive section wouldn't execute "shutdown: poweroff" on 22.04 srv
https://bugs.launchpad.net/bugs/2052892
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to subiquity in Ubuntu.



More information about the foundations-bugs mailing list