Commit Graph

70 Commits

Author SHA1 Message Date
Michael Biebl
4f982a70de Don't override sourcedir/destdir anymore
No longer necessary after dropping the separate udeb build flavour.

Gbp-Dch: Ignore
2022-01-02 21:04:11 +01:00
Michael Biebl
3ef3d45b84 sysusers: split up systemd.conf
Closes: #990349
2021-11-13 19:06:51 +01:00
Michael Biebl
e77d843c89 Use more consistent ordering in .install files
Gbp-Dch: Ignore
2021-11-13 18:27:30 +01:00
Luca Boccassi
f96d002269 systemd.install: catch all files installed in usr/bin and bin
At the moment, individual binaries are mentioned specifically in the install file.
When new binaries are added, manual work is needed to get them packaged, which affects
the upstream autopkgtest-based CI.
Change systemd.install to instead pick up everything from usr/bin and bin.
2021-05-07 12:23:58 +02:00
Balint Reczey
f9a36a5119 Ship systemd-cryptenroll in systemd package 2021-05-06 23:00:03 +02:00
Balint Reczey
13021954a2 debian/rules: Enable new systemd-sysext tool 2021-05-06 23:00:03 +02:00
Michael Biebl
6b159adba6 pam: move systemd-user PAM config from /etc/pam.d to /usr/lib/pam.d
This is supported since PAM 1.2 and we want as little files in /etc as
possible.
2020-11-18 01:12:04 +01:00
Balint Reczey
d6483013d5 Ship systemd-timesyncd in a separate package
The new systemd-timesyncd package conflicting with other NTP-related
packages resolves the problems arising when installing systemd-timesyncd
and other NTP servers on the same system.

Co-authored-by: Michael Biebl <biebl@debian.org>
LP: #1849156
Closes: #805927, #947936
2020-04-02 16:36:09 +02:00
Michael Biebl
58d8ced123 Install new systemd-id128 binary 2018-12-22 03:31:13 +01:00
Michael Biebl
0e42ad0ed0 Install new resolvectl tool
Don't ship the /sbin/resolvconf compat symlink in the systemd package,
as this would cause a file conflict with the resolvconf and openresolv
package.
2018-06-22 22:04:30 +02:00
Martin Pitt
dc426c3746 Enable systemd-sysusers unit and provide correct Debian static u/gids
Add a helper script debian/extra/make-sysusers-basic which generates a
sysusers.d(5) file from Debian's static master passwd/group files.
systemd 238 now supports  specifying different uid and gid and a
non-default login shell, so this is possible now.

Closes: #888126
2018-03-13 21:05:03 +01:00
Michael Biebl
dad7292586 Install modprobe configuration file to /lib/modprobe.d
Otherwise it is not read by kmod.

Closes: #879191
2017-10-22 23:01:06 +02:00
Michael Biebl
66d04826d6 Make installation of modprobe config work for both /usr/lib and /lib
This is only temporary to not break CI while we are in the process of
getting https://github.com/systemd/systemd/pull/7149 merged.

Gbp-Dch: Ignore
2017-10-21 00:43:31 +02:00
Michael Biebl
d5194d9ed6 Install new modprobe.d config file 2017-10-10 17:02:01 +02:00
Martin Pitt
063c377530 Install new systemd-umount and /usr/lib/environment.d/ 2017-03-02 11:06:14 +01:00
Martin Pitt
06d47ae061 systemd: Ship /var/lib
This will soon contain a polkit pkla file.
2016-11-20 11:48:15 +01:00
Martin Pitt
c88f79ff61 Install new systemd-mount 2016-11-03 23:31:36 +02:00
Martin Pitt
b3238e9604 Ship /etc/pam.d/systemd-user as a Debian specific file instead of patching the upstream one
This provides a working PAM config for upstream builds as well (spotted by
https://github.com/systemd/systemd/pull/4259). The upstream/Fedora and Debian
one deviate so much that simple seddery would be too complex as well.

No effective change for Debian packages.

Gbp-Dch: Ignore
2016-10-04 10:49:32 +02:00
Martin Pitt
c41ccefca5 Add debian/extra/kernel-install.d/60-initrd.install
This kernel-install drop-in copies the initrd of the selected kernel to the
EFI partition.
2016-08-24 06:54:17 +02:00
Martin Pitt
578cd314d6 Ship kernel-install
This is an implementation of the freedesktop.org boot loader spec:

   https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/

Closes: #744301

Gbp-Dch: Short
2016-08-24 06:54:17 +02:00
Martin Pitt
05199cdc74 Replace debian/extra/user-units/graphical-session-pre.target with upstream patch
Gbp-Dch: Ignore
2016-08-02 16:38:11 +02:00
Martin Pitt
cf8239f7b3 Add graphical-session-pre.target user unit
We need an "early" session target for things like gnome-keyring, openssh's
ssh-agent, session-migration etc. which all need to start before the main
desktop. These export environment variables to systemd/D-Bus such as
SSH_AUTH_SOCK or update the gsettings database.

This will be upstreamed soon once the structure for graphical systemd sessions
settles down.

Gbp-Dch: Short
2016-07-26 09:33:32 +02:00
Martin Pitt
6c1d3771a0 Build systemd-sysusers binary
For using in rkt. Do not ship the corresponding unit and sysusers.d/ files yet,
as these need some Debianization and an autopkgtest.

Closes: #823322
2016-06-21 22:46:31 +02:00
Martin Pitt
2576701ded New upstream release 230
Drop cherry-picked patches and adjust the others for the new upstream
release.

Add new symbols.
2016-05-22 22:27:18 +02:00
Martin Pitt
77d020de95 Add a DHCP exit hook for pushing received NTP servers into timesyncd
LP: #1578663
2016-05-05 11:02:26 -05:00
Martin Pitt
483b76c379 debian/systemd.install: Ship the new systemd-resolve 2016-02-11 18:49:53 +01:00
Martin Pitt
02b2eb8cdd Simplify debian-fixup.service
debian-fixup.service just has one purpose now (make /etc/mtab a symlink), so
drop the debian/extra/debian-fixup shell script and put the ln command directly
into debian-fixup.service. Update the description.
2015-09-09 08:30:48 +02:00
Martin Pitt
b5aa768d81 Remove our update-rc.d patches, replace them with upstream patches
Upstream now calls a /lib/systemd/systemd-sysv-install abstraction. Provide one
for update-rc.d.

This also implements the "is-enabled" command by directly checking for the
presence of rcS or rc5 symlinks.

Closes: #760616
2015-05-29 08:45:03 +02:00
Martin Pitt
12478ff9ae systemd.install: systemd.pc moved back into /usr/share/pkgconfig/ 2015-05-25 19:50:56 +02:00
Martin Pitt
471d9aaa25 Move systemd-hwdb into udev
It fits better there, as udev also ships the hdwb.d database.
2015-02-17 13:17:22 +01:00
Martin Pitt
3175273992 debian/systemd.install: Add new systemd-hwdb and language-fallback-map files 2015-02-17 11:50:19 +01:00
Martin Pitt
7ea24cda5e Move all Debian specific units in the systemd package into debian/extra/units/
Simplify debian/systemd.install accordingly. This makes it easier to see where
the .d/ drop-ins go to.
2015-02-16 15:24:36 +01:00
Martin Pitt
435212f689 Drop seddery for getty-static.service
Check for existance of /lib/systemd/system/dbus.service instead of dbus-daemon,
which works on Debian and Ubuntu, and is slightly more correct too.
2015-02-09 17:21:05 +01:00
Martin Pitt
4cabbb1193 Drop Launch-logind-via-a-shell-wrapper.patch and systemd-logind-launch wrapper
The only remaining thing that we need from it is to create /run/systemd/, move
that into the D-BUS service file directly.
2015-02-03 16:09:37 +01:00
Martin Pitt
c90467c1b2 Order ifup@.service and networking.service after network-pre.target
networking.service is usually generated from /etc/init.d/networking, so just
add a .d/ snippet.

Closes: #766938
2015-01-26 13:16:34 +01:00
Martin Pitt
93fe4ec754 Enable EFI support
This mostly auto-mounts /sys/firmware/efi/efivars, but also provides a
generator for auto-detecting the root and the /boot/efi partition if they
aren't in /etc/fstab.

Closes: #773533
2015-01-22 14:49:33 +01:00
Martin Pitt
9e1d0901b5 Clean up Debian specific file installation
In debian/rules, remove manual file installation. Move them to
debian/*.install.

Move all Debian specific installed files to debian/extra/.
2015-01-22 09:46:15 +01:00
Martin Pitt
f2614e0ca1 Put systemd.pc into arch specific pkgconfig dir
It contains the arch specific libdir value.
2014-12-28 13:14:00 +01:00
Martin Pitt
5cd02b75ee Ship new networkctl CLI tool 2014-11-28 10:52:32 +01:00
Michael Biebl
9ad978fac7 Install new systemd-path and systemd-escape binaries. 2014-09-05 01:54:44 +02:00
Sjoerd Simons
0e55fda590 Merge branch 'master' into experimental
Conflicts:
	debian/changelog
	debian/control
	debian/patches/series
	debian/rules
2014-08-08 23:29:59 +02:00
Michael Biebl
0aae718c61 Install zsh completions to the correct place
Closes: #717540
2014-07-26 21:45:24 +02:00
Jon Severinsson
ca3e157bc2 Install the new combined libsystemd0 library 2014-07-16 23:29:00 +02:00
Sjoerd Simons
65eff45fde Install busctl and translations
(cherry picked from commit 3853bf74f3102905b6587755781d1a42ea09f9da)
2014-07-16 23:29:00 +02:00
Michael Biebl
33ee4358d7 Install new files and remove the ones we don't use
Install zsh completion files.

Closes: #717540
2014-04-27 14:35:36 +02:00
Michael Biebl
c3873876ac Add .install files for the udev packages
They are basically a copy from the old udev package.
Also update the systemd.install file.

Two important issues:
- Since we are using dh_installinit --sourcedirectory now (for the
  flavours), we can no longer install files from debian/ via .install
  and need to do that manually via debian/rules.
- Splitting up systemd and udev is rather cumbersome as they have many
  shared directories. Instead of listing each file individually, we
  allow that some files are installed twice and remove them later on via
  debian/rules.
2013-07-18 16:54:10 +02:00
Michael Biebl
d7e5781795 Use a file trigger to automatically enable service and socket units
A lot of packages simply install systemd units but do not enable them.
Running "systemctl enable" in the maintainer scripts is not really an
option since it is not guaranteed that systemd is installed. We
therefore implement a workaround for wheezy which is supposed to go away
in jessie once we have the necessary tools support in debhelper etc.

What the proposed workaround does is:
- Install a dpkg file trigger for /lib/systemd/system which triggers a
  script named /lib/systemd/debian-enable-units every time a package
  installs a systemd unit.
- Run this script also upon initial installation of systemd and once on
  upgrades from earlier releases.

The script in particular does the following:
- Run "systemctl enable" for each service or socket it finds in
  /lib/systemd/system but does that only once, so the administrator can
  disable them if wanted.
- Record the state and installed symlinks. When a package shipping
  systemd units is uninstalled, we remove those symlinks again.
- Use a blacklist for internal services.
- If systemd is not the active init, it will only create a tag file
  and next time we boot with systemd, the script will be run early
  during boot. For that we install a service named
  debian-enable-units.service which is run in basic.target.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692150
2013-02-09 16:42:15 +01:00
Michael Biebl
332acbef7a Use a separate tmpfs for /run/lock (size 5M) and /run/user (size 100M).
Those directories are user-writable which could lead to DoS by filling up
/run.  Closes: #635131
2012-12-16 21:58:23 +01:00
Tollef Fog Heen
27bb26a30a Ship lsb init script override/integration in /lib/lsb/init-functions.d
Do this rather than diverting /lib/lsb/init-functions itself.  Add
appropriate Breaks to ensure upgrades happen.
2012-06-30 20:25:16 +02:00
Tollef Fog Heen
1950f28084 Convert to Multi-Arch: same where possible. Closes: #676615 2012-06-29 22:35:39 +02:00