~philroche/livecd-rootfs/+git/livecd-rootfs:bugfix/ubuntu-cpc-minimized-no-install-recommends

Last commit made on 2023-08-11
Get this branch:
git clone -b bugfix/ubuntu-cpc-minimized-no-install-recommends https://git.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs
Only Philip Roche can upload to this branch. If you are Philip Roche please log in for upload directions.

Branch merges

Branch information

Name:
bugfix/ubuntu-cpc-minimized-no-install-recommends
Repository:
lp:~philroche/livecd-rootfs/+git/livecd-rootfs

Recent commits

741b40d... by Philip Roche

fix: Install required package fuse3 when preseeding snaps

fuse3 was previously installed through recommends but with minimized images we no longer install recommends packages.

It is only required when preseeding snaps so does not need to be present in all minimized images so does not
need to be in the cloud-minimal seed.

59477b1... by Philip Roche

fix(temporary): Install required packages that were previously installed through recommends

As per https://git.launchpad.net/~philroche/ubuntu-seeds/+git/ubuntu/tree/cloud-minimal?h=feature/mantic-cloud-minimal-required-recommends
we have identified there are a number of packages that were previously installed through recommends but we now feel are required dependencies.

The goal is to have these present in the cloud-minimal seed but until then we can add them explicitly here for testing

589f5c8... by Philip Roche

fix: Ensure required dependencies are installed before trying `grub-install`

As a result of not installing recommended packages the packages required to run `grub-install`
are no longer installed by default.

To ensure we can successfully run `grub-install` we install both `grub-pc` and `grub2-common`
packages.

1158868... by Philip Roche

fix: Remove dangling symlink /boot/initrd.img.old if exists

As a result of not installing recommended packages we have dangling symlink `/boot/initrd.img.old`

As per the preceding `/boot/initrd.img` cleanup. Cleanup of `/boot/initrd.img.old`
only happens if it is a dangling symlink.

These `rm` commands also have `--verbose` flags now to make it easier when debugging logs

040e320... by Philip Roche

fix: Do not install recommends for ubuntu-cpc minimized project

This was an unintended consequence of moving to metapackage ubuntu-cloud-minimal

For minimized images we do not want to install any recommended packages.
We can do this by setting APT::Install-Recommends to false in apt config
or by passing --no-install-recommends to apt-get install.

23d57a6... by CloudBuilder

Imported 23.10.12

No reason for CPC update specified.

9fdf333... by CloudBuilder

Imported 23.10.10

No reason for CPC update specified.

7957d1d... by CloudBuilder

Imported 23.10.9

No reason for CPC update specified.

2149b61... by CloudBuilder

Imported 23.10.8

No reason for CPC update specified.

a497fcf... by CloudBuilder

Imported 23.10.7

No reason for CPC update specified.