[Bug 2075528] Re: Chroot during manual steps does not have DNS resolution working

Paul Mars 2075528 at bugs.launchpad.net
Thu Oct 10 07:01:33 UTC 2024


** Changed in: ubuntu-image
       Status: New => Confirmed

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

Title:
  Chroot during manual steps does not have DNS resolution working

Status in Ubuntu Image:
  Confirmed

Bug description:
  When doing classical build using image definition file, I'd want to
  have working manual steps with DNS resolution working, because they're
  currently not working at all.

  My image-definition.yaml:

  ```
  name: my-linux
  display-name: My Linux
  revision: 2
  architecture: arm64
  series: noble
  class: preinstalled
  kernel: linux-image-raspi
  gadget:
    url: "https://git.launchpad.net/snap-pi"
    branch: "classic"
    type: "git"
  rootfs:
    archive: ubuntu
    sources-list-deb822: true
    components:
      - main
      - restricted
      - universe
      - multiverse
    mirror: "http://ports.ubuntu.com/ubuntu-ports/"
    pocket: updates
    seed:
      urls:
        - "git://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/"
      branch: noble
      names:
        - server
        - server-raspi
        - raspi-common
        - minimal
        - standard
        - cloud-image
        - supported-raspi-common
  customization:
    cloud-init:
      user-data: |
        #cloud-config
        chpasswd:
          expire: false
          users:
            - name: pi
              password: my-linux
              type: text
    manual:
      copy-file:
        -
          source: ./packages-microsoft-prod.deb
          destination: /root
        -
          source: ./install-azure-iot-edge.sh
          destination: /root
      execute:
        -
          path: /root/install-azure-iot-edge.sh
    extra-snaps:
      - name: snapd
    extra-packages:
      - name: apparmor-profiles-extra
      - name: apparmor-utils
    fstab:
      - label: "writable"
        mountpoint: "/"
        filesystem-type: "ext4"
        dump: false
        fsck-order: 1
      - label: "system-boot"
        mountpoint: "/boot/firmware"
        filesystem-type: "vfat"
        mount-options: "defaults"
        dump: false
        fsck-order: 1
  artifacts:
    img:
      - name: my-linux.img
    manifest:
      name: my-linux.manifest
  ```

  install-azure-iot-edge.sh:
  ```
  #!/usr/bin/env bash
  dpkg -i /root/packages-microsoft-prod.deb
  rm /root/packages-microsoft-prod.deb

  apt-get update
  apt-get install -y moby-engine
  apt-get install -y aziot-agent
  ```

  packages-microsoft-prod.deb can be downloaded from here:
  https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb

  Error that I'm getting is in attachments as screenshot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/2075528/+subscriptions




More information about the foundations-bugs mailing list