snappy:release/2.69-deprecated

Last commit made on 2025-04-01
Get this branch:
git clone -b release/2.69-deprecated https://git.launchpad.net/snappy

Branch merges

Branch information

Name:
release/2.69-deprecated
Repository:
lp:snappy

Recent commits

182dae1... by Valentin David

tests/lib/tools/build_kernel_with_comps.sh: fix failure when lib already exists (#15240)

* tests/lib/tools/build_kernel_with_comps.sh: fix failure when lib already exists

* tests/lib/tools/build_kernel_with_comps.sh: do not fail if components exist

Now there are components on pc-kernel. So we need to replace, not
append a duplicated yaml node.

* tests/lib/prepare.sh: fix components with new kernels

* tests: use KERNEL_CHANNEL where possible

* tests/lib/prepare.sh: allow removing of components completely

a8e556c... by Maciej Borzecki

interfaces/system_key, many: return generated system key on mismatch (#15255)

* interfaces/system_key: return generated system key on mismatch

Return generated system key when a mismatch is detected. This allows
callers to futher process or inspect the system key.

Signed-off-by: Maciej Borzecki <email address hidden>

* o/ifacestate/helpers: update to match system key API changes

Signed-off-by: Maciej Borzecki <email address hidden>

* cmd/snap: update to match system key API changes

Signed-off-by: Maciej Borzecki <email address hidden>

---------

Signed-off-by: Maciej Borzecki <email address hidden>

02037b4... by Sergio Cazzolato

tests: new sru validation test (#15223)

* tests: new sru validation test

When sru validation is being executed, it is needed to check the correct
snapd deb is being used and no-reexec policy is applied.

* Make extra checks to ensure re-exec is not used

* fix shellcheck error

7beb647... by Maciej Borzecki

interfaces/builtin/scsi_generic: enable plug declaration (#15246)

Reenable base declaration for scsi-generic plug.

Signed-off-by: Maciej Borzecki <email address hidden>

3504337... by =?utf-8?b?55m96ZOt6aqiIChNaW5nY29uZyBCYWkp?= <email address hidden>

cmd/snap-confine: handle glibc HWCAPS subdirs (#15184)

Add all known glibc HWCAPS subdirectories for libc, a dependency of
snap-confine(8), to fix application launch errors like the following:

/usr/lib/snapd/snap-confine: error while loading shared libraries: libc.so.6: failed to map segment from shared object

As with my 11th Generation Intel laptop, libc.so.6 matches to:

$ ldd /snap/bin/mari0
    linux-vdso.so.1 (0x00007fe51b817000)
    libc.so.6 => /usr/lib/glibc-hwcaps/x86-64-v4/libc.so.6 (0x00007fe51a038000)
    /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fe51b819000)

HWCAPS subdirectories are found in /usr/lib/glibc-hwcaps/* by default.

Handle all above paths to avoid further problems. There may be more
runtime libraries that may require this (if any of snap-confine(8)'s
dependencies were built to the HWCAPS microarchitecture levels - but we
will just handle them in similar ways, should issues arise.

Signed-off-by: Mingcong Bai <email address hidden>

5ed54d7... by Valentin David

snapdtool: update command line when re-executing (#14795)

Snap re-execution looked confusing since it did not update `cmdline`
in `/proc`. That means `ps`, `top`, `systemd-cgls` showed
`/usr/lib/snapd/snapd` as running when the binary comes from the snap.

d25516e... by Maciej Borzecki

cmd/snap-confine: workaround time_t size differences between architectures (#15113)

The following error was observed when building for armhf:

snap-confine/snap-confine.c: In function ‘log_startup_stage’:
snap-confine/snap-confine.c:280:60: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
  280 | debug("-- snap startup {\"stage\":\"%s\", \"time\":\"%lu.%06lu\"}", stage, tv.tv_sec, tv.tv_usec);
      | ~~^ ~~~~~~~~~
      | | |
      | long unsigned int __time64_t {aka long long int}
      | %llu
snap-confine/snap-confine.c:280:66: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘__suseconds64_t’ {aka ‘long long int’} [-Werror=format=]
  280 | debug("-- snap startup {\"stage\":\"%s\", \"time\":\"%lu.%06lu\"}", stage, tv.tv_sec, tv.tv_usec);
      | ~~~~^ ~~~~~~~~~~
      | | |
      | long unsigned int __suseconds64_t {aka long long int}
      | %06llu
cc1: all warnings being treated as errors

Use proper formatting macros and check for time_t size.

Signed-off-by: Maciej Borzecki <email address hidden>

9c25e3d... by Miguel Pires

client: relax timeout err check

Signed-off-by: Miguel Pires <email address hidden>

2879f00... by Philip Meulengracht

tests/main/cloud-init: extend to cover openstack backend

889bd89... by Miguel Pires

tests: test ephemeral data saving/loading

Signed-off-by: Miguel Pires <email address hidden>