Commit Graph

12 Commits

Author SHA1 Message Date
openKylinBot e22d7b9def apply patches 2022-05-14 03:14:50 +08:00
openKylinBot e788c7535b format patches 2022-05-14 03:14:50 +08:00
J William Piggott 3c45559264 [PATCH] hwclock: make glibc 2.31 compatible
______________________________________________________
GNU C Library NEWS -- history of user-visible changes.
Version 2.31
Deprecated and removed features, and other changes affecting compatibility:

* The settimeofday function can still be used to set a system-wide time
  zone when the operating system supports it.  This is because the Linux
  kernel reused the API, on some architectures, to describe a system-wide
  time-zone-like offset between the software clock maintained by the kernel,
  and the "RTC" clock that keeps time when the system is shut down.

  However, to reduce the odds of this offset being set by accident,
  settimeofday can no longer be used to set the time and the offset
  simultaneously.  If both of its two arguments are non-null, the call
  will fail (setting errno to EINVAL).

  Callers attempting to set this offset should also be prepared for the call
  to fail and set errno to ENOSYS; this already happens on the Hurd and on
  some Linux architectures.  The Linux kernel maintainers are discussing a
  more principled replacement for the reused API.  After a replacement
  becomes available, we will change settimeofday to fail with ENOSYS on all
  platforms when its 'tzp' argument is not a null pointer.

  settimeofday itself is obsolescent according to POSIX.  Programs that set
  the system time should use clock_settime and/or the adjtime family of
  functions instead.  We may cease to make settimeofday available to newly
  linked binaries after there is a replacement for Linux's time-zone-like
  offset API.
______________________________________________________

hwclock(8) had one settimeofday(2) call where both args were set for
--hctosys when the RTC was ticking UTC. This allowed setting the system
time, timezone, and locking the warp_clock function with a single call.
That operation now takes 3 calls of settimeofday(2).

Although this common operation now takes three calls, the overall logic
for the set_system_clock() function was simplified.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: J William Piggott <elseifthen@gmx.com>

Gbp-Pq: Name hwclock-make-glibc-2.31-compatible.patch
2022-05-14 03:14:50 +08:00
Ubuntu Developers 9de229d149 hwclock_fix_audit_status
hwclock: fix audit exit status
    
    According to audit_log_user_message(3) result 1 is "success" and 0 is
    "failed", we use standard EXIT_{SUCCESS,FAILURE} macros with reverse
    status.
    
    Addresses: https://github.com/karelzak/util-linux/issues/966
    Signed-off-by: Karel Zak <kzak@redhat.com>


Gbp-Pq: Name hwclock_fix_audit_status.patch
2022-05-14 03:14:50 +08:00
Karel Zak f29e698f8a lsblk: force to print PKNAME for partition
PKNAME (parent kernel device name) is based on printed tree according
to parent -> child relationship. The tree is optional and not printed
if partition specified (.e.g "lsblk -o+PKNAME /dev/sda1"), but old
versions print the PKNAME also in this case.

Addresses: https://github.com/karelzak/util-linux/issues/813
Signed-off-by: Karel Zak <kzak@redhat.com>

Gbp-Pq: Name lsblk-force-to-print-PKNAME-for-partition.patch
2022-05-14 03:14:50 +08:00
Mauricio Faria de Oliveira 38aa4e64b8 [PATCH] libblkid: (xfs) external log: check for regular xfs on more sectors
The xfs external log probe only checks for regular xfs on sector zero,
but then checks for valid log record headers on all first 512 sectors.

This can incorrectly detect an xfs external log if a regular xfs (i.e.
with internal log) is shifted by up to 512 sectors; it may happen with
bcache and LVM1 for example, as the regular xfs is found later in disk.

This results in ambivalent filesystem detection, thus no UUID for udev.

Fix this problem by checking for regular xfs on all sectors considered
by the xfs external log probe.

Test-case with bcache:

Gbp-Pq: Name libblkid-xfs-log-check-for-reg-xfs-on-more-sectors.patch
2022-05-14 03:14:50 +08:00
Étienne Mollier 8de924cffc Reimplement umount completion to not use gawk's gensub.
Gbp-Pq: Name umount-completion.patch
2022-05-14 03:14:50 +08:00
Ubuntu Developers 2581103b71 fstrim shouldn't run inside a container
Container type implies the following products:
openvz	OpenVZ/Virtuozzo
lxc	Linux container implementation by LXC
lxc-libvirt	Linux container implementation by libvirt
systemd-nspawn	systemd's minimal container implementation, see systemd-nspawn(1)
docker	Docker container manager
podman	Podman container manager
rkt	rkt app container runtime
wsl	Windows Subsystem for Linux
 References:
 https://www.freedesktop.org/software/systemd/man/systemd.unit.html
 https://www.freedesktop.org/software/systemd/man/systemd-detect-virt.html#

 Fix: #840
Author: Eric Desrochers <eric.desrochers@canonical.com>
Origin: upstream, 0280d31a2b
Bug: https://github.com/karelzak/util-linux/issues/840
Bug-Ubuntu: https://launchpad.net/bugs/1589289

Gbp-Pq: Name prevent-fstrim-inside-container.patch
2022-05-14 03:14:50 +08:00
Martin Pitt 847bb97f42 Make sure file systems can be fixed on machines with locked root accounts (as Ubuntu does by default). Don't require --force for sulogin.
Bug-Debian: https://bugs.debian.org/326678

Gbp-Pq: Name sulogin-lockedpwd.patch
2022-05-14 03:14:50 +08:00
Michael Vogt 440a048f0f Add support for /bin/static-sh as fallback if the regular shell fails to execute
Bug-Ubuntu: https://launchpad.net/bugs/505887

Gbp-Pq: Name sulogin-fallback-static-sh.patch
2022-05-14 03:14:50 +08:00
openKylinBot 809763df0a Import Debian changes 2.34-ok1
util-linux (2.34-ok1) yangtze; urgency=medium

  * Build for openKylin.
2022-05-14 03:14:32 +08:00
openKylinBot fa45c7ac50 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00