Commit Graph

70 Commits

Author SHA1 Message Date
Michael Tremer fdc5bfe81f systemd: Link against whatever systemd supports
We have some libraries which systemd can take advantage of which have
formerly not been enabled.

This patch also fixes running the testsuite which - however - currently
does not run through.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-21 15:48:05 +00:00
Jonatan Schlag dda64cdc55 systemd: Built with systemd sd-netlink
This is needed for the network stack.
The patch reverts https://github.com/systemd/systemd/commit/dd35a61
as systemd currently does not export sd-netlink.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-19 16:51:47 +00:00
Michael Tremer 5fde2a877d systemd: Update to 254
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-14 13:09:25 +00:00
Stefan Schantl da4f96f132 systemd: Use sysusers mechanism inside the jail
Change the old user/group creation mechanism to use systemd's
sysusers mechanism instead.

This is a bit of a tricky part, because before systemd we do not have
this binary. So at first we have to push the sysusers files to the jails
sysusers directory and use the previous compiled and installed systemd-sysusers
binary in order to create the groups/users which are part of systemd
inside the jail.

After that, everything works quite normal when modifying the files or
direcotry owners.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-04-11 11:53:28 +00:00
Stefan Schantl e4b39d703b systemd: Build manpages again
This "optional" feature now has to be enabled.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-04-11 11:53:18 +00:00
Stefan Schantl 2d448045f3 systemd: Move some basic tools into own package
The systemd-sysusers and systemd-tmpfiles tools
are used by various services and the build system in order
to install / build packages.

Moving this tools into an own package allows us to early access
them without requiremet to install the whole systemd package.

Anyway the systemd package requires those tools to proper get
installed and handle their own sysusers files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-04-11 11:53:11 +00:00
Stefan Schantl 20943f4159 systemd: Enable sysusers subsystem
This allows dynamically user and group creation based on
sysusers config files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2023-03-26 13:41:03 +00:00
Stefan Schantl 0b0c2be242 systemd: Update to 253
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2023-03-26 13:41:03 +00:00
Stefan Schantl 39c6a57b95 systemd: Do not create /run/log/journal
This will be done by the corresponding tmpfiles configuration
and violetes the FHS.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2023-03-21 18:25:39 +00:00
Michael Tremer c1bf5bac2e systemd: Require libxcrypt and replace Python 2 dependencies
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-27 13:41:57 +00:00
Stefan Schantl a95b73836a systemd: Do not longer depend on authconfig
The pam_systemd module nowadays is part of the
default pam auth configuration - so this is not longer
required.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-20 13:54:38 +00:00
Stefan Schantl 56a7990ec6 systemd: Proper spawn a getty on TTY1.
systemctl fails to execute the "enable" operation
if a given service name does not exist or could not
be enabled.

In case multiple services have been given at once,
the entire request fails.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-12 21:38:57 +00:00
Stefan Schantl e296cea0f2 systemd: Silence console output when updating the package.
Otherwise there are hints about non executed operations
displayed because systemd does not run or lives in a chrooted
environment.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-12 21:38:57 +00:00
Michael Tremer 884e7dc490 systemd: Update to 252
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-12-01 09:35:23 +00:00
Stefan Schantl cbaab2907d systemd: Enable libseccomp support
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-06-21 04:32:26 +01:00
Stefan Schantl cefc1a9b66 systemd: Drop systemd-units package.
* Rework build process to use meson and ninja macros.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-06-21 04:32:14 +01:00
Michael Tremer dc32225384 systemd: Conflict setup < 3.0-13 for /etc/environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-06-19 10:14:42 +01:00
Stefan Schantl afca15005c systemd: Update to 242
This is a major update to the latest stable version.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-06-19 10:13:13 +01:00
Stefan Schantl aaa616e7d5 systemd: Update to version 239
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-21 21:53:44 +01:00
Michael Tremer c4296a3d1c systemd: Don't let udev fiddle with network settings
systemd/udev has some builtin stuff that changes network
settings we are handling in network

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-21 00:24:50 +01:00
Stefan Schantl 2dfd22f3bf systemd: Enable spwaning getty's on serial devices
Fixes #11678.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-22 12:13:52 +00:00
Stefan Schantl 20bbeabf9f systemd: Update to 233
This is a major update for systemd to version 233.

* Drop support for the audit subsystem.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-08-15 12:42:04 +01:00
Stefan Schantl 557068def8 systemd: Allow RPATH
The systemd tool now requires an rpath for libsystemd-shared
library to run properly.

Fixes #11272

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-15 18:20:25 +00:00
Stefan Schantl e52f3c8b0d systemd: Update to version 232.
* Drop sub-package for compat-libs which will not be provided
  anymore since systemd 230.

* Drop sub-package for python binding, which have been moved to
  an own package.

* Remove unneeded file for X11 and ZSH.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-03 13:36:27 +00:00
Michael Tremer eebef710c1 systemd: Disable testsuite
This fails to build on my aarch64 system

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-10-28 17:19:40 +02:00
Stefan Schantl c9dd9f9b7c systemd: Update to 231.
This is an major update to the latest stable version of systemd.

* Enable testsuite during buildtime.
* Dropp support for SELinux.

Fixes #10962.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-10-04 20:53:55 +01:00
Stefan Schantl b6b0f37a1d systemd: Generate machine-id on first run.
Do not longer generate the machine-id during the installation progress,
it will be gernerated (if not exists) on the first run of the system
automatically.

Fixes #10078.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-09-01 12:40:03 +01:00
Stefan Schantl 63af7a712d systemd: Enable python bindings
Enable the build of systemd python bindings for python3.
Requires python-lxml and python development headers to be present.

Fixes #10969.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-10-26 10:17:35 +00:00
Stefan Schantl 747db4fdcf systemd: Create missing system groups
The system groups input and utmp where missing which
are required by udevd to proper work.

Fixes #10942.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-10-18 18:56:44 +01:00
Stefan Schantl 4cdcf12702 systemd: Enable build of compat libs.
Some software out there is still linking against the old
systemd libraries which now are shipped in an own package.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-10-16 22:24:53 +01:00
Stefan Schantl 8823e1f935 systemd: Update to 221.
This is an update to the latest stable version of systemd. I also fixed
some problems with a non existing user group (systemd-journal) which have triggered
error messages to the journal in the past.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-10 18:52:00 +01:00
Stefan Schantl 56f487169c systemd: Reexec systemd after update.
Reexec the systemd init daemon after update from now. This will prevent
from leaving the system in an undefined / unuseable status.

Fixes #10820.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-21 22:26:41 +02:00
Stefan Schantl 7e97512ab5 systemd: Update to 215. 2014-09-06 15:19:37 +02:00
Michael Tremer 4f20932508 systemd: Remove udev rules for "predictable" network device names 2014-08-26 15:02:42 +02:00
Michael Tremer df49f08912 systemd: Fix redundant conflict which confuses the solver. 2013-06-26 21:15:04 +02:00
Stefan Schantl 519776fd6f systemd: Fix conflict with nss-myhostname.
nss-myhostname has become a part of systemd since version 201.
So the old nss-myhostname package is obsolet and can be dropped.

Fixes #10370.
2013-06-13 22:42:39 +02:00
Stefan Schantl 17bafa6d3d systemd: Add upstream patch to support "is-enabled" for templated units. 2013-05-21 21:20:19 +02:00
Stefan Schantl 1b81106bb8 systemd: Update to 204.
This is a major update to the latest availabel version.
2013-05-11 19:43:17 +02:00
Stefan Schantl 7f84cbd56f systemd: Update to 201.
* Remove old patch for branding, because this doens't work in this way anymore.
* Drop rpm stuff, we don't want to ship that.
* Add dependeny to python-gobect3 for systemd-analyze.

Fixes #10327.
2013-04-14 16:45:31 +02:00
Stefan Schantl f2ada565d1 systemd: Add legacy tmpfile for autocreate /run/lock directory.
A lot of services use this directory to put temporary files into it.

Fixes #10291.
2013-01-26 22:09:27 +01:00
Stefan Schantl 1191e38358 systemd: New systemd-libs package.
If a package requires the systemd-units package, every time the whole systemd
and all its dependencies have to be installed which grows up build environments
for 160MB. To prevent this and save space on disk and time to download and extract
those packages I've moved systemd lib into an own package.

Also fixed a small packaging problem on libudev.
2013-01-26 21:30:21 +01:00
Stefan Schantl b329a15569 systemd: Update to 196.
This is a mayor update to the latest stable release.
2012-11-24 22:55:30 +01:00
Stefan Schantl c04bf094f0 systemd: Update to 195.
Mayor update.
2012-11-24 22:54:24 +01:00
Stefan Schantl 4990bf7fbc systemd: Update to 194. 2012-10-07 12:26:35 +02:00
Stefan Schantl 755fe98632 systemd: Use journald for system and kernel logging.
From now we will use the shipped journal daemon, to log and
watch our messages from system and kernel.

Reference #10199.
2012-07-29 18:58:12 +02:00
Stefan Schantl e633b4ff0a systemd: Update to 187.
Permanently disable testsuite, because it isn't working
in our chroot environment.
2012-07-29 18:54:28 +02:00
Stefan Schantl a8aa3ead43 systemd: Update to 186.
Minor update to latest version.

Move libudev.h and libudev.so to libudev-devel.

Fixes #10179 and #10180.
2012-07-06 20:19:11 +02:00
Stefan Schantl 90fd1d0382 systemd: Remove service files for plymouth.
New versions of plymouth will provides those file by themselve.
2012-06-30 20:40:58 +02:00
Stefan Schantl 73eb472488 systemd: Fix packaging of libudev-devel.
Add libudev.pc to libudev-devel package.
2012-06-30 19:46:19 +02:00
Stefan Schantl 2d01364a72 systemd: Update to 185.
This is a mayor update to the latest stable version.
Perform systemd-udev merge, now systemd provides udev and all it's libraries.

Fixes #10075.
2012-06-10 15:39:47 +02:00