[Bug 2064557] Re: [3.x][feature-request] To support the Ubuntu Pro enabling

Laider Lai 2064557 at bugs.launchpad.net
Thu May 2 07:23:28 UTC 2024


Currently, we handle a post-script to enable Ubuntu Pro after the
ubuntu-image is finished to output the target image.

In post-script, it mounts some resources from the host, then chroot to
call "proc" commands for enabling.

1. mount --bind /dev dev/
2. mount --bind /proc proc/
3. chroot . /bin/sh -c "pro --debug attach --no-auto-enable ${PRO_TOKEN}"
4. chroot . /bin/sh -c "pro --debug enable --assume-yes ${FUNCTION}"
...

-- 
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/2064557

Title:
  [3.x][feature-request] To support the Ubuntu Pro enabling

Status in Ubuntu Image:
  New

Bug description:
  Customers may need to build an Ubuntu image which is enabled with the Ubuntu Pro by default.
  However, Ubuntu Image 3.x does not yet support to do this.

  Even though we try to call a script by manual execution function for enabling Ubuntu Pro by some "pro" commands.
  But the "pro" command requires some resources from /dev which does not conform under the manual stage.
  For example, "pro" command complains "No such file or directory: '/proc/cpuinfo | meminfo | mounts'"
  and failed to "systemctl start ua-timer.timer"

  Does Ubuntu image 3.x support to enable Ubuntu Pro under a suitable
  stage? Tks.

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




More information about the foundations-bugs mailing list