From 9653e125fddc32e909fcc666d2dbb4fd110dd884 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Dec 12 2017 07:52:06 +0000 Subject: update split-files.py and list of ghost files --- diff --git a/split-files.py b/split-files.py index 9115c98..03f29c5 100644 --- a/split-files.py +++ b/split-files.py @@ -39,9 +39,9 @@ for file in files(buildroot): /usr/lib/rpm(/macros.d|)$| /usr/lib/firewalld(/services|)$| /usr/share/(locale|licenses|doc)| # no $ - /etc(/pam\.d|/xdg|/X11|/X11.*\.d|)$| + /etc(/pam\.d|/xdg|/X11|/X11/xinit|/X11.*\.d|)$| /usr/(src|lib/debug)| # no $ - /var(/log|/lib|/run|)$ + /var(/cache|/log|/lib|/run|)$ ''', n, re.X): continue if '/security/pam_' in n: @@ -52,7 +52,8 @@ for file in files(buildroot): o = o_tests elif re.search(r'''journal-(remote|gateway|upload)| systemd-remote\.conf| - /usr/share/systemd/gatewayd + /usr/share/systemd/gatewayd| + /var/log/journal/remote ''', n, re.X): o = o_remote elif re.search(r'''mymachines| @@ -78,7 +79,7 @@ for file in files(buildroot): rfkill| random-seed| modules-load| - timesyncd| + timesync| cryptsetup| kmod| quota| diff --git a/systemd.spec b/systemd.spec index b43a09b..1fa4987 100644 --- a/systemd.spec +++ b/systemd.spec @@ -386,13 +386,20 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/coredump mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/catalog mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/backlight mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/rfkill -mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/journal-upload mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/linger +mkdir -p %{buildroot}%{_localstatedir}/lib/private +mkdir -p %{buildroot}%{_localstatedir}/log/private +mkdir -p %{buildroot}%{_localstatedir}/cache/private +mkdir -p %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload +mkdir -p %{buildroot}%{_localstatedir}/lib/private/systemd/timesync +ln -s ../private/systemd/journal-upload %{buildroot}%{_localstatedir}/lib/systemd/journal-upload +ln -s ../private/systemd/timesync %{buildroot}%{_localstatedir}/lib/systemd/timesync mkdir -p %{buildroot}%{_localstatedir}/log/journal touch %{buildroot}%{_localstatedir}/lib/systemd/catalog/database touch %{buildroot}%{_sysconfdir}/udev/hwdb.bin touch %{buildroot}%{_localstatedir}/lib/systemd/random-seed -touch %{buildroot}%{_localstatedir}/lib/systemd/clock +touch %{buildroot}%{_localstatedir}/lib/private/systemd/timesync/clock +touch %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload/state # Install yum protection fragment install -Dm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/yum/protected.d/systemd.conf @@ -414,8 +421,10 @@ install -Dm0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE11} # rules towards the end, anything which is an exception needs a line # here. python3 %{SOURCE2} %buildroot </dev/null || useradd -r -l -g systemd-jou %ghost %dir /etc/systemd/system/sysinit.target.wants %ghost %dir /etc/systemd/system/system-update.target.wants %ghost %dir /etc/systemd/system/timers.target.wants -%ghost %dir /var/log/journal -%ghost %dir /var/lib/systemd/coredump -%ghost %dir /var/lib/systemd/backlight -%ghost %dir /var/lib/systemd/rfkill -%ghost %dir /var/lib/systemd/linger -%ghost /var/lib/systemd/random-seed -%ghost /var/lib/systemd/clock -%ghost /var/lib/systemd/catalog/database %ghost %dir /var/lib/rpm-state/systemd %files libs -f .file-list-libs @@ -646,8 +665,6 @@ getent passwd systemd-journal-upload &>/dev/null || useradd -r -l -g systemd-jou %files devel -f .file-list-devel %files udev -f .file-list-udev -%ghost %{_sysconfdir}/udev/hwdb.bin -%ghost %config(noreplace) %{_sysconfdir}/vconsole.conf %files container -f .file-list-container