Commit Graph

39 Commits

Author SHA1 Message Date
Michael Biebl
b6be32c547 Drop alias for rc.local and urandom as well
Also re-add mask for /etc/init.d/{rc,rcS}, they are not masked by
initscripts as strictly speaking those are no SysV init scripts.

Follow-up for the previous commit.

Gbp-Dch: Ignore
2019-11-09 17:06:38 +01:00
Michael Biebl
745b37aeee Drop masks for SysV init scripts provided by initscripts and bootlogd
Since sysvinit 2.88dsf-59.10, the initscripts and bootlogd package will
create those masks themselves.
2019-11-09 16:39:10 +01:00
Michael Biebl
4966735802 Drop masks for SysV init scripts that have been dropped
/etc/init.d/motd: sysvinit (2.93-3)
/etc/init.d/module-init-tools: kmod (3-1)

Gbp-Dch: Short
2019-11-09 16:34:11 +01:00
Felipe Sateler
8473f88fff Fix comment about why we disable hwclock.service
Systemd nowadays doesn't do it itself because the kernel does it on its own when necessary,
and when not, it is not safe to save the hwclock (eg, there is no certainty the system clock
is correct)
2019-02-13 09:48:50 -03:00
Michael Biebl
238a087f0b Drop mask for fuse SysV init script
The fuse package has removed its SysV init script a long time ago, so
the mask is no longer needed.
2018-02-28 19:04:37 +01:00
Michael Biebl
76f105d6f2 Drop sigpwr-container-shutdown.service
This is no longer necessary as lxc-stop has been fixed to use SIGRTMIN+3
to shut down systemd based LXC containers.

https://github.com/lxc/lxc/pull/1086
https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/
2016-07-20 16:31:09 +02:00
Martin Pitt
0345d09eb9 Add resolved → resolvconf integration
Add debian/extra/units/systemd-resolved.service.d/resolvconf.conf to tell
resolvconf about resolved's builtin DNS server on 127.0.0.53. With that, DNS
servers picked up via networkd are respected when using resolvconf, and
software like Chrome that does not do NSS (libnss-resolve) still gets proper
DNS resolution.

Drop the brittle and ugly systemd-networkd-resolvconf-update.{path,service}
hack instead.
2016-06-29 15:22:52 +02:00
Michael Biebl
8d4d3797f8 Mask /etc/init.d/rc and /etc/init.d/rcS from initscripts
We don't want users to execute those by accident.
2015-12-04 01:57:46 +01:00
Martin Pitt
b3ba0e6014 Drop debian-fixup.service in favor of using a tmpfiles.d clause
This is faster, and more aligned to what upstream does. We currently don't
install tmpfiles.d/etc.conf, so copy the rule to debian.conf for now.
2015-10-27 12:07:35 +01:00
Martin Pitt
b1c7fd6cce Add systemd-networkd-resolvconf-update.{path,service} units
These send DNS server updates from networkd to resolvconf, if installed and
enabled. As we removed if-up.d/ integration, resolvconf is not otherwise being
updated.

Adjust the test suite as the previous commit stopped waiting for if-up.d/ to
have run, so now we need to wait for resolvconf to finish.
2015-09-30 12:15:40 +02:00
Martin Pitt
44c3369f97 Add sigpwr-container-shutdown.service: Power off when receiving SIGPWR in a container
This makes lxc-stop work for systemd containers.

https://lists.linuxcontainers.org/pipermail/lxc-users/2015-May/009279.html

LP: #1457321
2015-05-21 08:11:18 +02:00
Martin Pitt
0a7f4d4b8e debian/systemd.links: Drop obsolete hwclockfirst.service mask link
This was dropped in wheezy's util-linux already.
2015-02-16 17:18:56 +01:00
Martin Pitt
6e147c0124 Statically start getty on tty2-6 without logind
Add getty-static.service unit which starts getty@.service on tty 2 to 6 if dbus
is not installed, and hence logind cannot auto-start them on demand.

Closes: #772700
2015-02-09 14:22:56 +01:00
Michael Biebl
1ea8b2110a Make /run/lock tmpfs an API fs so it is available during early boot
Closes: #751392
2014-09-05 01:23:23 +02:00
Michael Biebl
91e094d6d2 Drop our Debian-specific run-user.mount unit
as upstream now creates a per-user tmpfs via logind.

See upstream commit 1c231f56482546725c4dbd3303f70300bd3c63e9.
2014-08-26 12:15:11 +02:00
Jon Severinsson
fead84266a Map some rcS.d init script dependencies to their systemd equivalent. 2014-07-22 15:38:03 +02:00
Michael Biebl
09c680d92f Mask remaining services provided by the initscripts package
and document in more detail why certain services have been masked.

Closes: #659264
2014-07-17 01:06:56 +02:00
Michael Biebl
d95d27a349 Use the correct file when masking urandom.service
Upstream renamed systemd-random-seed-load.service to
systemd-random.service.
2014-04-27 18:08:00 +02:00
Michael Biebl
34ba070273 Create a compat symlink /etc/sysctl.d/99-sysctl.conf
as systemd-sysctl no longer reads /etc/sysctl.conf
2014-04-27 14:39:08 +02:00
Daniel Schaal
5c31508eef Remove leftover symlink to debian-enable-units 2013-07-21 15:33:08 +02:00
Michael Stapelberg
a3e8371ea0 drop udev.udev-mtab.init, /etc/mtab is a symlink to /proc/mounts
Call rm_conffile and update-rc.d remove to make it go away.
2013-07-18 19:29:19 +02:00
Michael Biebl
860de8ae3c Upstream provides a native rc-local.service now
so create an Alias for the rc.local SysV init script.
2013-07-18 16:54:22 +02:00
Michael Biebl
7e331807dd Upstream renamed remount-rootfs.service → systemd-remount-fs.service 2013-07-18 16:54:22 +02:00
Michael Biebl
0d5295a1b0 Run debian-enable-units.service after sysinit.target
to ensure our tmp files aren't nuked by systemd-tmpfiles.
2013-03-13 07:57:11 +01: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
Michael Biebl
3880e0d185 Mask checkroot-bootclean
checkroot-bootclean cleans up directories before mounting a tmpfs
over it. As systemd handles mounts differently, mask this service.
Closes: #670591
2012-04-28 10:57:09 +02:00
Michael Biebl
37f538ffa8 Remove outdated comment 2012-03-06 18:05:04 +01:00
Tollef Fog Heen
db96561e5a Add symlink from /bin/systemd to /lib/systemd/systemd. 2012-02-29 22:44:53 +01:00
Michael Biebl
024780c1ab Add alias for kmod, the successor of module-init-tools 2012-02-28 07:58:12 +01:00
Michael Biebl
bebec9f9a7 Remove lib-init-rw symlinks
Was missed in cce644d34bd5015b4caf1756a1db827c167e51c9
2012-02-27 22:51:45 +01:00
Michael Biebl
61c75202f5 Update comment regarding hwclock 2012-02-11 19:45:12 +01:00
Tollef Fog Heen
55fd299eb4 Blacklist fuse init script 2011-10-12 07:15:02 +02:00
Tollef Fog Heen
762763bd1f Add debian-fixup service that symlinks mtab to /proc/mounts and migrates /var/run and /var/lock to symlinks to /run 2011-09-23 19:27:41 +02:00
Tollef Fog Heen
d98944c8cc Mask mtab.service and udev-mtab.service
They are useless
2011-03-02 21:04:36 +01:00
Michael Biebl
b8a4186cf3 Fix single user mode 2011-01-16 10:04:58 +01:00
Michael Biebl
2ed148b903 Fix a small typo 2011-01-16 10:04:21 +01:00
Tollef Fog Heen
e4a35aa806 Use the built-in cryptsetup support in systemd 2011-01-16 09:56:30 +01:00
Tollef Fog Heen
8558f7bfe9 Use native mount, mask services done by systemd 2010-12-26 20:31:33 +01:00