3335 Commits

Author SHA1 Message Date
Philip Roche
2b520e7e43 feat: Update d/ch for 2.765.41
Add description for changes proposed in 2.765.41

(cherry picked from commit 8daf75cd35807afbfbfe2a2e0ef82b8f0b9bbd3e)
2024-02-21 11:37:27 +00:00
Jess Jang
ba397a0e02 fix: Missing apparmor feature for generic kernel (LP: #2052789)
ipc has been added to apparmor feature in generic (5.15)
kernel and this feature should be seeded during image
build[0].

[0] https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2052789

(cherry picked from commit 4833221e4b5b3af1e76e6cd8818ef85565358ade)
2024-02-21 11:34:28 +00:00
Łukasz 'sil2100' Zemczak
41f4ccf0a6 releasing package livecd-rootfs version 2.765.40 2.765.40 2024-02-20 11:01:13 +01:00
Łukasz 'sil2100' Zemczak
ef87b2b2d5 Handle the allwinner kernel in the same way as we handle generic 2024-02-20 09:54:14 +01:00
Michael Hudson-Doyle
43133764fd releasing package livecd-rootfs version 2.765.39 2.765.39 2024-02-19 09:25:24 +13:00
Michael Hudson-Doyle
11b5162b14 Use flock to avoid races with systemd-udevd that cause loop device partitions to briefly disappear. (LP: #2045586) 2024-02-19 06:55:19 +13:00
Łukasz 'sil2100' Zemczak
eb987eae64 releasing package livecd-rootfs version 2.765.38 2.765.38 2024-01-25 12:10:52 +01:00
Łukasz 'sil2100' Zemczak
071611b708 Merge branch 'jammy-64k' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu/jammy 2024-01-25 12:06:16 +01:00
Philip Roche
79432bfc4d fix: d/changelog debian-changelog-line-too-long line 3 for version 2.765.37
This fixes lintian error

```
W: livecd-rootfs: debian-changelog-line-too-long line 3
```
2.765.37
2024-01-22 16:25:52 +00:00
Philip Roche
8b83212372 Merge bugfix/unminimize-no-lxd-installer-package-jammy into ubuntu/jammy [a=philroche] [r=utkarsh,vorlon]
fix: Fix calls to `unminimize` if lxd-installer package not present (LP: #2049723)

The unminimize script will try to install the lxd snap using the shim script
`/usr/sbin/lxd` from the lxd-installer package.

Previously `unminimize` was using `snap`
to install `lxd` directly which was being diverted by diverting the `snap` command.

This is no longer the case so we can remove `/usr/sbin/lxd` from the lxd-installer package
if it exists and then redirect any calls to `/usr/sbin/lxd` to `/bin/true`

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/458910
2024-01-22 15:58:26 +00:00
Łukasz 'sil2100' Zemczak
e8f7935ffa Add changelog. 2024-01-22 16:54:24 +01:00
Łukasz 'sil2100' Zemczak
7d5a370ffe Add a largemem subarch that ships a 64k kernel variant by default. 2024-01-22 16:46:37 +01:00
Philip Roche
8f8415e1dc fix: Always use dpkg-divert instead of altering files maintained by packages
Altering a file maintained by a package can lead to unexpected behaviou expecially in
this case where packages are being removed and added.

Instead use `dpkg-divert` to allow us to mock `lxd` to `true` to allow `unminimize` to work
without error and to avoid installing of the `lxd` snap.
2024-01-22 13:27:12 +00:00
Philip Roche
6ad70d64a5 fix: When using rm do not use --force when not required
`--force` implies that we wish not to fail `rm` even if the file is not present.

This was not our intention and as such can be removed.

Also use short option `-v` for verbose output as per the test of the code base.
2024-01-22 13:27:12 +00:00
Philip Roche
d97514cba0 fix: Improve comments for case when lxd-installer package is not installed
Improve confusing comments for case when lxd-installer package is not installed.

This was worded confusingly
2024-01-22 13:27:12 +00:00
Philip Roche
c09d4c1652 fix: Only use single brackets for if statements
Double brackets are not required and do not follow the uses elsewhere in this code base
2024-01-22 13:27:12 +00:00
Philip Roche
34dea62ef0 fix: Fix calls to unminimize if lxd-installer package not present (LP: #2049723)
The unminimize script will try to install the lxd snap using the shim script
`/usr/sbin/lxd` from the lxd-installer package.

Previously `unminimize` was using `snap`
to install `lxd` directly which was being diverted by diverting the `snap` command.

This is no longer the case so we can remove `/usr/sbin/lxd` from the lxd-installer package
if it exists and then redirect any calls to `/usr/sbin/lxd` to `/bin/true`.
2024-01-22 13:27:12 +00:00
Utkarsh Gupta
8a59f9d4ee Update d/ch for 2.765.36 release 2.765.36 2024-01-19 18:09:10 +05:30
Thomas Bechtold
373b5b6338 Update d/changelog 2024-01-19 09:39:31 +01:00
Thomas Bechtold
434b21e202 fix: use correct sshd_config.d/ ordering
Commit 3b2eeb017153cbb wrongly backported a change to not modify
/etc/ssh/sshd_config . The correct fix from ubuntu/master is
3b2eeb017153c where the file is named 60-cloudimg-settings.conf
instead of 10-cloudimg-settings.conf.

This fixes problems with cloud-init which does write
50-cloud-init.conf which should have higher priority than the provided
file from the image.
2024-01-19 09:29:52 +01:00
Utkarsh Gupta
26342a6e15 Change UNRELEASED -> jammy as it has been uploaded 2.765.35 2024-01-18 16:18:21 +05:30
Łukasz 'sil2100' Zemczak
e117bfdfee Merge branch 'ubuntu/jammy' of git+ssh://git.launchpad.net/livecd-rootfs into jammy-pi-fix 2024-01-15 16:52:58 +01:00
Łukasz 'sil2100' Zemczak
154ff7d44e releasing package livecd-rootfs version 2.765.34 2.765.34 2024-01-15 16:43:29 +01:00
Łukasz 'sil2100' Zemczak
3b4c889c3d Remove comments in the debian/control dependencies as it was causing the package build to fail. 2024-01-15 16:42:05 +01:00
Łukasz 'sil2100' Zemczak
33362993d1 For raspi preinstalled builds, use a per-series dedicated gadget branch. 2024-01-15 11:39:33 +01:00
Utkarsh Gupta
c558aa3653 Update d/ch for 2.765.33 release 2024-01-11 16:50:45 +05:30
Utkarsh Gupta
1a05e8298a unminimize: Use lxd-installer to install LXD itself (LP: 2036725)
By invoking LXD, lxd-installer will install LXD from the right
place, thereby make it simpler for us to not hardcode the
channel and manually snap install it.

(cherry picked from commit 795927c48cf2e763e8f222e8c27c63e71d966a5f)
2024-01-11 16:50:20 +05:30
Steve Langasek
74cdef3a14 Merge branch 'no-kpartx-on-jammy' into ubuntu/jammy 2023-12-06 23:55:41 -08:00
Brian Murray
a319c1fe80 releasing package livecd-rootfs version 2.765.32 2023-12-06 11:03:27 -08:00
Brian Murray
c70fbe0a15 arm: fix console parameter for ARM cloud-images (LP: #2036730) 2023-12-06 11:02:58 -08:00
Steve Langasek
f45bf21636 Include bug ref in changelog.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2045797
2023-12-06 10:59:00 -08:00
Steve Langasek
fe04dedbf8 Document in debian/control that kpartx dep is for CPC 2023-12-04 08:33:42 -08:00
Steve Langasek
582c081675 Use losetup instead of kpartx to resolve race conditions in riscv64 image builds. 2023-12-03 22:07:08 -08:00
Steve Langasek
786eb7dc4c releasing package livecd-rootfs version 2.765.31 2.765.31 2023-12-03 21:53:43 -08:00
Steve Langasek
5f3f87e780 typos 2023-12-03 21:50:44 -08:00
Steve Langasek
ea630ac812 Merge remote-tracking branch 'jchittum/backport-apparmor65-lp2037567' into ubuntu/jammy 2023-12-03 21:50:08 -08:00
Philip Roche
e9548a4984 Merge bugfix/ubuntu-cpc-LP-2038957-ppc64el-vmlinux-jammy into ubuntu/jammy [a=philroche] [r=andrew-cloke,vorlon]
fix: Enable snap preseeding with ppc64el images where /boot/vmlinux is used instead of /boot/vmlinuz. (LP: #2038957)

ppc64el still uses /boot/vmlinux so we need to determine the boot file name as non ppc64el use /boot/vmlinuz. This
is then used to determine the kernel major minor version installed so that the correct apparmor features can be used
during snap preseeding. This preseeding was failing for ppc64el for the mantic 6.5 kernel as the /boot/vmlinuz
being checked did not exist.

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454052
2.765.30
2023-10-27 13:07:36 +01:00
Philip Roche
11d1063be4 fix: Enable snap preseeding with ppc64el images where /boot/vmlinux is used instead of /boot/vmlinuz. (LP: #2038957)
ppc64el still uses /boot/vmlinux so we need to determine the boot file name as non ppc64el use /boot/vmlinuz. This
is then used to determine the kernel major minor version installed so that the correct apparmor features can be used
during snap preseeding. This preseeding was failing for ppc64el for the mantic 6.5 kernel as the /boot/vmlinuz
being checked did not exist.

(cherry picked from commit 089646a32f927f32e9e8961e231391f0bcb6f66b)

# Conflicts:
#	debian/changelog
#	live-build/functions
2023-10-27 12:51:48 +01:00
Philip Roche
0687a14b91 Fix d/ch formatting for 2.765.29 2.765.29 2023-10-27 12:01:43 +01:00
Philip Roche
d1edbd804e Merge bugfix/ubuntu-cpc-LP-2036195-auto-installed-packages-jammy into ubuntu/jammy [a=philroche] [r=andrew-cloke,vorlon]
The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.

(cherry picked from commit 1deccc2edd7f139b84a6cb3d0a4dfe5ebaff50c7)

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454065
2023-10-26 17:29:18 +01:00
Steve Langasek
40a3b73b5e The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.
(cherry picked from commit 1deccc2edd7f139b84a6cb3d0a4dfe5ebaff50c7)

# Conflicts:
#	debian/changelog
2023-10-26 16:42:22 +01:00
Philip Roche
cb9db40176 Merge utkarsh-jammy-sru-1996489 into ubuntu/jammy [a=utkarsh] [r=philroche]
Fix unminimize to correctly list packages (LP: #1996489)

    Prior to dpkg/1.21.0, there was a bug where dpkg -V/--verify
    couldn't list all the correct packages correctly but with
    that being fix and in archive since Jammy, this works perfectly
    but the syntax to report the missing files have changed. It
    just prints 'missing' now. With that new format, we can now
    fix the regex to simply list the packages.

    With this patch, the unminimize script works flawlessly
    on a minimized image.

    (cherry picked from commit 78a98c683573a1f7983afae54e2f187eeae127c7)

    ---

    fix: install LXD snap from stable/ubuntu-<version> channel (LP: #2036725)

    In the past, we'd directly snap install lxd which defaults to
    the latest/stable channel. However, whilst working on enhancing
    unminimize, it was observed that we install this snap from
    the stable/ubuntu-<version> channel instead.

    This was also noted as a failure when running the CTF tests:
    `lxd installed from latest/stable, not stable/ubuntu-23.10`

    (cherry picked from commit 12a2109c223e261214747d5f98d4b8d7ee9625e3)

MP: https://code.launchpad.net/~utkarsh/livecd-rootfs/+git/livecd-rootfs/+merge/452742
2023-10-26 15:17:01 +01:00
John Chittum
3cec0a6714
Update changelog 2023-10-19 07:24:53 -05:00
John Chittum
025a8a6de6
fix: Add 6.5 kernel apparmor feats
lp: #2037567. starting in kernel 6.5.0.1006, there's been an update to
apparmor features. Creates the 6.5 kernel directory, fully populates
with feats checked from a machine running 6.5.0.1006 installed from
proposed (as of 20230927).

(cherry picked from commit 5427e5ad6c02b2d7c203cc6597aff5518d5b344c)
2023-10-19 07:06:45 -05:00
Utkarsh Gupta
0d57b51e61 Update d/ch for 2.765.28 release 2023-10-04 13:50:19 +05:30
Utkarsh Gupta
4ba66ac0d1 fix: install LXD snap from stable/ubuntu-<version> channel (LP: #2036725)
In the past, we'd directly snap install lxd which defaults to
the latest/stable channel. However, whilst working on enhancing
unminimize, it was observed that we install this snap from
the stable/ubuntu-<version> channel instead.

This was also noted as a failure when running the CTF tests:
`lxd installed from latest/stable, not stable/ubuntu-23.10`

(cherry picked from commit 12a2109c223e261214747d5f98d4b8d7ee9625e3)
2023-10-04 13:48:50 +05:30
Utkarsh Gupta
67dd334c25 Fix unminimize to correctly list packages (LP: #1996489)
Prior to dpkg/1.21.0, there was a bug where dpkg -V/--verify
couldn't list all the correct packages correctly but with
that being fix and in archive since Jammy, this works perfectly
but the syntax to report the missing files have changed. It
just prints 'missing' now. With that new format, we can now
fix the regex to simply list the packages.

With this patch, the unminimize script works flawlessly
on a minimized image.

(cherry picked from commit 78a98c683573a1f7983afae54e2f187eeae127c7)
2023-10-04 13:48:40 +05:30
Steve Langasek
26b87e3cfb releasing package livecd-rootfs version 2.765.27 2.765.27 2023-09-27 22:59:08 -07:00
Thomas Bechtold
185a22afe5 Add debian/changelog 2023-09-19 13:56:43 +02:00
Thomas Bechtold
3b2eeb0171 fix: don't modify ssh_config for ubuntu-cpc projects (LP:1968873)
Modifying directly /etc/ssh/sshd_config creates "problems" when
upgrading eg. from Focal to Jammy because the upgrade will ask the
user what to do with the modified config. To avoid that, put the
custom configuration into /etc/ssh/sshd_config.d/ so the upgrade of
openssh-server can just replace /etc/ssh/sshd_config without asking
the user.

(cherry picked from commit b54d24ff3310f7ace00ab08e0dacfdc89e026f1c)
2023-09-19 13:55:30 +02:00