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

Paul White 2052892 at bugs.launchpad.net
Sun Mar 17 13:23:28 UTC 2024


** Package changed: ubuntu => subiquity (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2052892

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

Status in subiquity package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2052892/+subscriptions




More information about the foundations-bugs mailing list