1
0
mirror of https://github.com/systemd/systemd synced 2026-03-13 08:34:47 +01:00

Compare commits

..

No commits in common. "e4dcf0cbce7f3fc76e14ae946df8ae5c08a6c401" and "14519d7dfa806a1d2d999e4c88037f3ce6a84c08" have entirely different histories.

3 changed files with 4 additions and 35 deletions

View File

@ -48,6 +48,7 @@ Packages=
hostname hostname
iproute2 iproute2
iputils-ping iputils-ping
isc-dhcp-server
knot knot
libcap-ng-utils libcap-ng-utils
libdw-dev libdw-dev

View File

@ -1,16 +0,0 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[TriggerMatch]
Distribution=debian
Release=bullseye
Release=bookworm
Release=trixie
[TriggerMatch]
Distribution=ubuntu
Release=jammy
Release=noble
Release=questing
[Content]
Packages=isc-dhcp-server

View File

@ -455,26 +455,10 @@ static int image_make(
uint64_t on_mount_id; uint64_t on_mount_id;
int _mnt_id; int _mnt_id;
/* The fallback is required for CentOS 9 compatibility when working on a directory located on an
* overlayfs. */
r = name_to_handle_at_try_fid(fd, /* path= */ NULL, &fh, &_mnt_id, &on_mount_id, AT_EMPTY_PATH); r = name_to_handle_at_try_fid(fd, /* path= */ NULL, &fh, &_mnt_id, &on_mount_id, AT_EMPTY_PATH);
if (r < 0) {
if (is_name_to_handle_at_fatal_error(r))
return r;
r = path_get_unique_mnt_id_at(fd, /* path= */ NULL, &on_mount_id);
if (r < 0) {
if (!ERRNO_IS_NEG_NOT_SUPPORTED(r) && r != -EUNATCH)
return r;
int on_mount_id_fallback = -1;
r = path_get_mnt_id_at(fd, /* path= */ NULL, &on_mount_id_fallback);
if (r < 0) if (r < 0)
return r; return r;
if (r == 0)
on_mount_id = on_mount_id_fallback;
}
} else if (r == 0)
on_mount_id = _mnt_id; on_mount_id = _mnt_id;
if (S_ISDIR(st->st_mode)) { if (S_ISDIR(st->st_mode)) {