2 Commits

Author SHA256 Message Date
3f1fb126bf Avoid shipping (empty) directories and ghost files in /var (jsc#PED-14853)
This was originally intended to ensure these paths had a designated package
owner. However the existing list was neither exhaustive nor up to date. To
better support immutable images, we are removing these entries and will now keep
only /var/lib/systemd as owned by the systemd package. Maintaining the broader
list provided little value due to its ongoing inconsistency anyways.
2026-02-05 15:25:36 +01:00
bff13341b6 Fix a typo in systemd.changelog 2026-02-05 11:37:40 +01:00
5 changed files with 12 additions and 16 deletions

View File

@@ -3,7 +3,6 @@
#
%dir %{_sysconfdir}/systemd/journal-remote.conf.d
%dir %{_sysconfdir}/systemd/journal-upload.conf.d
%ghost %dir %{_localstatedir}/log/journal/remote
# Main config files have been replaced in favor of drop-ins.
%ghost %{_sysconfdir}/systemd/journal-remote.conf
%ghost %{_sysconfdir}/systemd/journal-upload.conf

View File

@@ -25,9 +25,6 @@
%dir %{_journalcatalogdir}
%dir %{_libdir}/systemd
%dir %{_localstatedir}/lib/systemd
%dir %{_localstatedir}/lib/systemd/catalog
%dir %{_localstatedir}/lib/systemd/coredump
%dir %{_localstatedir}/lib/systemd/rpm
%dir %{_modprobedir}
%dir %{_sysconfdir}/X11/xorg.conf.d
%dir %{_sysconfdir}/binfmt.d
@@ -91,7 +88,6 @@
%ghost %config(noreplace) %{_sysconfdir}/locale.conf
%ghost %config(noreplace) %{_sysconfdir}/machine-info
%ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal
%ghost %{_localstatedir}/lib/systemd/catalog/database
# Main config files have been replaced in favor of drop-ins.
%ghost %{_sysconfdir}/systemd/journald.conf
%ghost %{_sysconfdir}/systemd/logind.conf

View File

@@ -39,7 +39,6 @@
%ghost %attr(444, root, root) %{_sysconfdir}/udev/hwdb.bin
%ghost %attr(644, root, root) %{_prefix}/lib/udev/compat-symlink-generation
%ghost %config(noreplace) %{_sysconfdir}/vconsole.conf
%ghost %{_localstatedir}/lib/systemd/backlight
# Main config files have been replaced in favor of drop-ins.
%ghost %{_sysconfdir}/systemd/pstore.conf
%ghost %{_sysconfdir}/systemd/sleep.conf

View File

@@ -1,9 +1,20 @@
-------------------------------------------------------------------
Thu Feb 5 14:13:44 UTC 2026 - Franck Bui <fbui@suse.com>
- Avoid shipping (empty) directories and ghost files in /var (jsc#PED-14853)
This was originally intended to ensure these paths had a designated package
owner. However the existing list was neither exhaustive nor up to date. To
better support immutable images, we are removing these entries and will now
keep only /var/lib/systemd as owned by the systemd package. Maintaining the
broader list provided little value due to its ongoing inconsistency anyways.
-------------------------------------------------------------------
Wed Feb 4 10:49:42 UTC 2026 - Franck Bui <fbui@suse.com>
- Import commit fb9d92682b2469aa205d4df3ffea61e4806ed0e9
b9d92682b terminal-util: stop doing 0/upper bound check in tty_is_vc() (bsc#1255326)
fb9d92682b terminal-util: stop doing 0/upper bound check in tty_is_vc() (bsc#1255326)
80ec26cee0 core/dbus-manager: propagate meaningful dbus errors from EnqueueMarkedJobs
-------------------------------------------------------------------

View File

@@ -1005,11 +1005,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/sysusers.d/
# system will complain. This is odd since we simply own a ghost file in it...
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
# Make sure directories in /var exist.
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/coredump
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/catalog
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/rpm
# Make sure the NTP units dir exists.
mkdir -p %{buildroot}%{_ntpunitsdir}
@@ -1040,15 +1035,11 @@ mkdir -p %{buildroot}%{_userpresetdir}
mkdir -p %{buildroot}%{_systemd_system_env_generator_dir}
mkdir -p %{buildroot}%{_systemd_user_env_generator_dir}
# ghost directories with default permissions.
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/backlight
# ghost files with default permisssions.
touch %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf
touch %{buildroot}%{_sysconfdir}/vconsole.conf
touch %{buildroot}%{_sysconfdir}/locale.conf
touch %{buildroot}%{_sysconfdir}/machine-info
touch %{buildroot}%{_localstatedir}/lib/systemd/catalog/database
%fdupes -s %{buildroot}%{_mandir}