[Bug 2078583] Re: unminimize script missing in 24.04

Chloé Smith 2078583 at bugs.launchpad.net
Mon Dec 2 21:13:43 UTC 2024


#### SRU validation  ####

Built an OCI rootfs using `livefs_build.py --suite noble --arch amd64
--download-mapping-file mapping.yaml --livefs-name ubuntu-oci --project
ubuntu-oci --image-target all --subproject minimized --image-format
plain --archive ppa:cloudware/cpc-livecd-rootfs-proposed` where
`cloudware/cpc-livecd-rootfs-proposed` [0] is CPC's official fork of the
`livecd-rootfs` package's `-proposed` pocket.

Using the newly built .tar.gz...

```
kajiya at little-HAL:~/work/cpc_build_tools/public$ docker import noble-minimal-cloudimg-amd64-root.tar.gz
sha256:a5e5b5298fbd64f8bccc1a825db081d49f842eacec846adf1a02b87c96dbb239
kajiya at little-HAL:~/work/cpc_build_tools/public$ docker images
REPOSITORY   TAG       IMAGE ID       CREATED         SIZE
<none>       <none>    a5e5b5298fbd   5 seconds ago   78.1MB
kajiya at little-HAL:~/work/cpc_build_tools/public$ docker run -it a5e5b5298fbd bash
root at ffe1c7226ced:/# pwd
/
root at ffe1c7226ced:/# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
root at ffe1c7226ced:/# unminimize 
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

This script restores content and packages that are found on a default
Ubuntu server system in order to make this system more suitable for
interactive use.

Reinstallation of packages may fail due to changes to the system
configuration, the presence of third-party packages, or for other
reasons.

This operation may take some time.

Would you like to continue? [y/N] y

Re-enabling installation of all documentation in dpkg...
Updating package list and upgrading packages...
Get:1 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:3 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [626 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [15.3 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [607 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [726 kB] 
Get:10 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB]       
Get:11 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1808 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [18.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [935 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [607 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [856 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [11.9 kB]
Fetched 26.6 MB in 3s (8349 kB/s)     
Reading package lists... Done
...
...
Restoring system translations...
Documentation has been restored successfully.
root at ffe1c7226ced:/# exit
exit
```

Also confirmed that `unminimize` was in the manifest as expected:
```
kajiya at little-HAL:~/work/cpc_build_tools/public$ cat noble-minimal-cloudimg-amd64-root.manifest | grep unminimize
unminimize	0.2.1
kajiya at little-HAL:~/work/cpc_build_tools/public$ 
```


Refs: [0] https://launchpad.net/~cloudware/+archive/ubuntu/cpc-livecd-rootfs-proposed

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

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

Title:
  unminimize script missing in 24.04

Status in livecd-rootfs:
  New
Status in Ubuntu Docker Images:
  New
Status in livecd-rootfs package in Ubuntu:
  Invalid
Status in livecd-rootfs source package in Noble:
  Fix Committed

Bug description:
  [SRU]
  =====

  [Impact]
  `unminimize` was at one point available/already installed in noble (24.04) OCI images, but since the move to "split it out" from `livecd-rootfs` it is no longer installed and is causing issues for some users. This is technically a regression, therefore we will reintroduce it to noble (only).

  [Test Case]

  Using the proposed branch, artefacts will be built and inspected to validate that `unminimize` is indeed now present in the images. Other users have also kindly provided their workflows here which we can also use as verification. The following will be run:
  ```
  RUN set -eux \
      && /usr/local/sbin/unminimize
  ```

  Additionally, the man pages should be now be present in the container
  (as a result of unminimize being run).

  If the above runs successfully, we can consider verification done.

  [Vendored Dependencies]

  N/A

  [Where Problems Could Occur]

  The biggest possible issue has already been mitigated (by symlinking
  the newly installed `/usr/bin/unminimize` to
  `/usr/local/sbin/unminimize`; therefore making this change transparent
  to current users). Other issues could possibly stem from the
  `unminimize` package itself. However, `unminimize` is is `main` and as
  such is subject to the thorough testing/ownership/etc. so we can
  assume the package is good.

  [Other Information]

  The SRU bug is _only_ for noble - the `unminimize` package has been
  entirely split out from `livecd-rootfs` in all releases noble+.
  However this has caused a regression to some users as this bug shows.
  Therefore `unminimize` is being reintroduced to noble but will remain
  separate (i.e. not pre-installed) in releases going forward.

  === Original bug ===

  The unminimize script seems to be missing from the latest 24.04 image,
  it was there previously:

  xxx at xxx:~$ docker run --pull=always --rm -it public.ecr.aws/lts/ubuntu:24.04
  24.04: Pulling from lts/ubuntu
  Digest: sha256:e6e66381e1ded976f2cdb0e87d1fe820710aff3ac7800bf252e8a0deeca0f135
  Status: Image is up to date for public.ecr.aws/lts/ubuntu:24.04
  root at d7dd66dec218:/# cat /etc/update-motd.d/60-unminimize
  #!/bin/sh
  #
  # This file is not managed by a package.  If you no longer want to
  # see this message you can safely remove the file.
  echo ""
  echo "This system has been minimized by removing packages and content that are"
  echo "not required on a system that users do not log into."
  echo ""
  echo "To restore this content, you can run the 'unminimize' command."
  root at d7dd66dec218:/# unminimize
  bash: unminimize: command not found

To manage notifications about this bug go to:
https://bugs.launchpad.net/livecd-rootfs/+bug/2078583/+subscriptions




More information about the foundations-bugs mailing list