1 Commits

Author SHA256 Message Date
Giuliano Belinassi
413ee91272 Update scripts to comply with Immutable Mode (jsc#PED-14756)
Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
2026-01-27 22:37:06 -03:00
3 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 28 01:21:00 UTC 2026 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Update scripts to comply with Immutable Mode (jsc#PED-14756).
-------------------------------------------------------------------
Thu Oct 2 14:45:48 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>

View File

@@ -40,6 +40,7 @@ BuildRequires: procps
BuildRequires: python3-pexpect
BuildRequires: python3-psutil
BuildRequires: libseccomp-devel
BuildRequires: systemd
# Disable ptrace_scope on tumbleweed
%if 0%{?suse_version} >= 1600
@@ -106,9 +107,6 @@ install -D -m0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/rpm/macros.d/macros.user
install -D -m0644 %{SOURCE3} %{buildroot}%{_prefix}/etc/tukit.conf.d/selinux-ulp.conf
install -D -m0644 %{SOURCE4} %{buildroot}%{_prefix}/lib/tmpfiles.d/ulp-tmp.conf
# Create /var/livepatches
mkdir -p %{buildroot}/var/livepatches/
# Convert identical files into hardlinks.
%fdupes %{buildroot}/%{_prefix}
# Remove .la and .so files. libpulp.so is not supposed to be linked
@@ -121,6 +119,9 @@ find %{buildroot}/%{_prefix} -name libpulp.so -delete
%define ld_so_conf /etc/ld.so.conf
%define addline include /var/livepatches/ld.so.conf
# Create /var/livepatches
systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/ulp-tmp.conf
# There are special logic needed in sle-micro onwards.
if [ "$TRANSACTIONAL_UPDATE" = "true" ] && [ "x$TRANSACTIONAL_UPDATE_ROOT" != "x" ]; then
# Add instance of /var/livepatches if it doesn't already exist.
@@ -157,7 +158,6 @@ fi
%{_prefix}/etc/tukit.conf.d/selinux-ulp.conf
%{_prefix}/etc/tukit.conf.d
%{_prefix}/etc
/var/livepatches
%license LICENSE
%changelog

View File

@@ -1 +1,3 @@
R /var/livepatches/*
# Create an empty livepatches path directory on OSes using systemd.
d /var/livepatches 0755 root root