]> git.proxmox.com Git - systemd.git/log
systemd.git
10 years agoexplain in README.Debian how to enable persistent logging in journald
Michael Stapelberg [Sat, 21 Dec 2013 18:07:15 +0000 (19:07 +0100)]
explain in README.Debian how to enable persistent logging in journald

10 years agoonly call setfacl if /var/log/journal actually exists
Michael Stapelberg [Sat, 21 Dec 2013 18:02:59 +0000 (19:02 +0100)]
only call setfacl if /var/log/journal actually exists

It doesn’t exist by default, because we don’t yet ship the directory.
Shipping it would turn on persistent logging.

10 years agodon’t try to start autovt units when not running with systemd as pid 1
Michael Stapelberg [Sat, 21 Dec 2013 17:49:10 +0000 (18:49 +0100)]
don’t try to start autovt units when not running with systemd as pid 1

Closes: #726466
10 years agoadd dependency on adduser for the systemd-journal group
Michael Stapelberg [Thu, 28 Nov 2013 21:22:34 +0000 (22:22 +0100)]
add dependency on adduser for the systemd-journal group

10 years agodon’t delete the systemd-journal group on postrm
Michael Stapelberg [Thu, 28 Nov 2013 21:17:22 +0000 (22:17 +0100)]
don’t delete the systemd-journal group on postrm

This will cause breakage because the files are left there. Other
packages can add new groups which re-use the old IDs and you end up with
weird and unintentional ACLs.

See also https://wiki.debian.org/AccountHandlingInMaintainerScripts

10 years agorun setfacl recursively to also cover already existing files
Michael Stapelberg [Thu, 28 Nov 2013 21:17:00 +0000 (22:17 +0100)]
run setfacl recursively to also cover already existing files

10 years agorevert 92c4ef2d357baeef78b6f82f119b92f7ed12ac77
Michael Stapelberg [Wed, 27 Nov 2013 21:48:47 +0000 (22:48 +0100)]
revert 92c4ef2d357baeef78b6f82f119b92f7ed12ac77

We don’t have /usr mounted in the initramfs yet in Debian, so let’s
support split usr by copying the file instead of symlinking if
necessary, for now.

Closes: #726256
10 years agoAdd systemd-journal group
Guido Günther [Thu, 26 Sep 2013 12:13:24 +0000 (14:13 +0200)]
Add systemd-journal group

Users in this group are allowed to see system messages and messages from
other uses.

10 years agoallow group adm read access on /var/log/journal
Michael Stapelberg [Wed, 27 Nov 2013 20:22:09 +0000 (21:22 +0100)]
allow group adm read access on /var/log/journal

Closes: #717386
10 years agoupdate debian/changelog to reflect all changes since 204-5
Michael Stapelberg [Wed, 27 Nov 2013 18:43:28 +0000 (19:43 +0100)]
update debian/changelog to reflect all changes since 204-5

10 years agosystemctl: mangle names when avoiding dbus
Václav Pavlín [Fri, 17 May 2013 14:03:36 +0000 (14:03 +0000)]
systemctl: mangle names when avoiding dbus

Unit names were mangled in function enable_unit only when dbus was
used. This patch adds mangling also when the dbus is not in use.

This makes it possible to say e.g.:
   systemctl --root=/path enable cups
without spelling cups.service out in full.

11 years agofstab-generator: don’t rely on /usr being mounted in the initrd
Michael Stapelberg [Tue, 29 Oct 2013 21:29:22 +0000 (22:29 +0100)]
fstab-generator: don’t rely on /usr being mounted in the initrd

Debian is not there yet. Let’s revert this upstream change for now.

Closes: #724797
11 years agoMake 99-systemd.rules check for /run/systemd/systemd instead of the ill-named cgroups...
Tollef Fog Heen [Mon, 28 Oct 2013 13:31:37 +0000 (14:31 +0100)]
Make 99-systemd.rules check for /run/systemd/systemd instead of the ill-named cgroups directory.

11 years agopreinst: only preserve unit files for systems running systemd as PID 1 (Thanks mbiebl)
Michael Stapelberg [Mon, 28 Oct 2013 07:02:23 +0000 (08:02 +0100)]
preinst: only preserve unit files for systems running systemd as PID 1 (Thanks mbiebl)

11 years agopreinst: preserve var-{lock,run}.mount when upgrading from 44 to 204
Michael Stapelberg [Sun, 27 Oct 2013 21:50:22 +0000 (22:50 +0100)]
preinst: preserve var-{lock,run}.mount when upgrading from 44 to 204

Closes: #723936
11 years agoRun update-rc.d defaults before update-rc.d <enable|disable>
Michael Stapelberg [Sun, 27 Oct 2013 19:25:10 +0000 (20:25 +0100)]
Run update-rc.d defaults before update-rc.d <enable|disable>

Closes: #722523
11 years agoRelease version 204-5 to unstable
Michael Biebl [Mon, 23 Sep 2013 10:10:50 +0000 (12:10 +0200)]
Release version 204-5 to unstable

urgency=high for the security upload.

11 years agoUpdate changelog
Michael Biebl [Mon, 23 Sep 2013 10:09:02 +0000 (12:09 +0200)]
Update changelog

11 years agoMerge branch 'upstream-fixes' into debian
Michael Biebl [Mon, 23 Sep 2013 09:59:38 +0000 (11:59 +0200)]
Merge branch 'upstream-fixes' into debian

11 years agopolkit: Avoid race condition in scraping /proc
Colin Walters [Thu, 22 Aug 2013 17:55:21 +0000 (13:55 -0400)]
polkit: Avoid race condition in scraping /proc

If a calling process execve()s a setuid program, it can appear to be
uid 0.  Since we're receiving requests over DBus, avoid this by simply
passing system-bus-name as a subject.

11 years agoClarify changelog regarding the circular dependency between udeb packages
Michael Biebl [Wed, 18 Sep 2013 00:32:06 +0000 (02:32 +0200)]
Clarify changelog regarding the circular dependency between udeb packages

11 years agoRelease version 204-4 to unstable
Michael Biebl [Tue, 17 Sep 2013 22:05:42 +0000 (00:05 +0200)]
Release version 204-4 to unstable

11 years agoUpdate changelog
Michael Biebl [Tue, 17 Sep 2013 22:04:37 +0000 (00:04 +0200)]
Update changelog

11 years agoUse devtmpfs instead of tmpfs
Michael Biebl [Tue, 17 Sep 2013 21:26:08 +0000 (23:26 +0200)]
Use devtmpfs instead of tmpfs

udev now requires devtmpfs, so update the SysV init script and various
other places to use devtmpfs instead of tmpfs.  Closes: #722604

11 years agoSimplify enable_udev() on initial installation
Michael Biebl [Tue, 17 Sep 2013 21:18:04 +0000 (23:18 +0200)]
Simplify enable_udev() on initial installation

Since UDEV_ROOT support has been removed upstream, simplify
enable_udev() which is run on initial installation. We now just run
"invoke-rc.d udev start" and restart daemons whose sockets might have
been hidden by the devtmpfs.

11 years agoAbort udev upgrade if devtmpfs support is missing
Michael Biebl [Tue, 17 Sep 2013 20:01:54 +0000 (22:01 +0200)]
Abort udev upgrade if devtmpfs support is missing

Add preinst check to abort udev upgrade if the currently running kernel
lacks devtmpfs support. Since udev 176, devtmpfs is mandatory as udev no
longer creates any device nodes itself. This only affects self-compiled
kernels which now need CONFIG_DEVTMPFS=y.  Closes: #722580

11 years agoRemove pre-squeeze upgrade code
Michael Biebl [Tue, 17 Sep 2013 18:55:50 +0000 (20:55 +0200)]
Remove pre-squeeze upgrade code

11 years agoSuppress errors about unknown hwdb builtin
Michael Biebl [Tue, 17 Sep 2013 18:47:31 +0000 (20:47 +0200)]
Suppress errors about unknown hwdb builtin

udev 196 introduced a new "hwdb" builtin which is not understood by the
old udev daemon.

11 years agoRe-order upgrade version checks to improve readability
Michael Biebl [Tue, 17 Sep 2013 18:41:02 +0000 (20:41 +0200)]
Re-order upgrade version checks to improve readability

Nesting the upgrade version checks safes us a few
"dpkg --compare-versions" calls, but makes the code unnecessarily hard
to read. Since "dpkg --compare-versions" is rather cheap, re-order the
version checks to improve readability.

11 years agoUse /dev instead of $udev_root
Michael Biebl [Tue, 17 Sep 2013 18:16:33 +0000 (20:16 +0200)]
Use /dev instead of $udev_root

UDEV_ROOT is no longer configurable, so simply use /dev everywhere.
See also dbad4c2a8dcd69e310de897daf8eb150bdcec249

11 years agoRemove udev-udeb dependency from libudev1-udeb
Michael Biebl [Tue, 17 Sep 2013 18:03:25 +0000 (20:03 +0200)]
Remove udev-udeb dependency from libudev1-udeb

This dependency was copied over from the old udev-gtk-udeb package and
no longer makes any sense since libudev1-udeb only contains a library
nowadays. It also leads to a circular dependency.

11 years agoUse the official field for udebs: Package-Type
Michael Biebl [Tue, 17 Sep 2013 18:03:00 +0000 (20:03 +0200)]
Use the official field for udebs: Package-Type

11 years agoAdd missing udeb line to shlibs.local
Michael Biebl [Tue, 17 Sep 2013 17:59:54 +0000 (19:59 +0200)]
Add missing udeb line to shlibs.local

This ensures that udev-udeb gets a proper dependency on
libudev1-udeb and not libudev1.  Closes: #722939

11 years agoAdd a few more bug references
Michael Biebl [Thu, 12 Sep 2013 02:10:33 +0000 (04:10 +0200)]
Add a few more bug references

11 years agoRelease version 204-3 to unstable
Michael Biebl [Wed, 11 Sep 2013 22:13:24 +0000 (00:13 +0200)]
Release version 204-3 to unstable

11 years agoUpdate changelog
Michael Biebl [Wed, 11 Sep 2013 22:09:55 +0000 (00:09 +0200)]
Update changelog

11 years agoMerge branch 'upstream-fixes' into debian
Michael Biebl [Wed, 11 Sep 2013 22:02:55 +0000 (00:02 +0200)]
Merge branch 'upstream-fixes' into debian

11 years agoDon't install kernel-install(8) man page
Michael Biebl [Wed, 11 Sep 2013 22:00:55 +0000 (00:00 +0200)]
Don't install kernel-install(8) man page

We don't ship the kernel-install binary so we shouldn't ship its man
page either.  Closes: #722180

11 years agoUse different default paths for various binaries
Michael Biebl [Wed, 11 Sep 2013 21:32:25 +0000 (23:32 +0200)]
Use different default paths for various binaries

Since Debian hasn't done the usr-merge (yet), various binaries are still
installed in / and not /usr.
Update the defaults in configure.ac so we don't have to build-depend on
quota, libcap2-bin, procps, kmod and kexec-tools just to get the correct
paths.  Closes: #721347

11 years agoDrop obsolete Replaces: libudev0
Michael Biebl [Wed, 11 Sep 2013 20:33:00 +0000 (22:33 +0200)]
Drop obsolete Replaces: libudev0

It was added in udev 171-2 where the changelogs and documentation files
in udev were converted to symlinks pointing to libudev0.

11 years agoSmall documentation tweak, add reference to upstream docs
Michael Biebl [Wed, 11 Sep 2013 20:31:14 +0000 (22:31 +0200)]
Small documentation tweak, add reference to upstream docs

11 years agoGenerate strict dependencies between the binary packages
Michael Biebl [Sun, 11 Aug 2013 21:10:24 +0000 (23:10 +0200)]
Generate strict dependencies between the binary packages

Use a shlibs.local file to generate strict inter-package dependencies
and add an explicit versioned dependency on libsystemd-login0 to systemd.
This ensures that e.g. libsystemd-login is always talking to the correct
version of systemd-logind.  Closes: #719444

11 years agoRecognize discard option in /etc/crypttab.
Ondrej Balaz [Fri, 9 Aug 2013 15:35:18 +0000 (17:35 +0200)]
Recognize discard option in /etc/crypttab.

Signed-off-by: Ondrej Balaz <blami@blami.net>
11 years agosystemctl: call update-rc.d enable|disable, not defaults|remove
Michael Stapelberg [Sat, 10 Aug 2013 09:12:52 +0000 (11:12 +0200)]
systemctl: call update-rc.d enable|disable, not defaults|remove

11 years agosystemctl: don’t skip native units when enabling/disabling sysv units
Michael Stapelberg [Sat, 10 Aug 2013 09:06:06 +0000 (11:06 +0200)]
systemctl: don’t skip native units when enabling/disabling sysv units

11 years agoAlso redirect to update-rc.d when not using .service
Michael Stapelberg [Fri, 9 Aug 2013 18:23:31 +0000 (20:23 +0200)]
Also redirect to update-rc.d when not using .service

I.e. make systemctl enable rsyslog work (previously, only systemctl
enable rsyslog.service)

11 years agoOnly import net.ifaces cmdline property for network devices
Michael Biebl [Fri, 9 Aug 2013 11:38:23 +0000 (13:38 +0200)]
Only import net.ifaces cmdline property for network devices

otherwise the property is set for all devices.

11 years agoUse /bin/bash as debug-shell
Michael Biebl [Fri, 9 Aug 2013 09:40:24 +0000 (11:40 +0200)]
Use /bin/bash as debug-shell

The /bin/sh symlink typically points to dash, which is a very basic and
not very comfortable shell. Since bash is an essential package and thus
always available, use that as debug-shell instead.

11 years agoDon’t mount /tmp as tmpfs by default
Michael Stapelberg [Thu, 8 Aug 2013 19:50:41 +0000 (15:50 -0400)]
Don’t mount /tmp as tmpfs by default

…by adding an [Install] section to tmp.mount and removing the
local-fs.target.wants symlink.

Users can use “systemctl enable tmp.mount” to enable mounting /tmp after
the next reboot and “systemctl start tmp.mount” to get /tmp mounted as
tmpfs right now (beware, files currently in /tmp will not be visible
anymore afterwards).

11 years agochange the log_info() line in systemctl to reflect reality
Michael Stapelberg [Thu, 8 Aug 2013 19:34:12 +0000 (21:34 +0200)]
change the log_info() line in systemctl to reflect reality

11 years agoAdd bug-script to systemd and udev
Daniel Schaal [Sun, 28 Jul 2013 06:57:16 +0000 (08:57 +0200)]
Add bug-script to systemd and udev

This gives the output of systemd-delta, systemctl dump
and the contents of /var/lib/systemd/deb-systemd-helper-enabled.

Print the udev database for udev.

Closes: #711245
11 years agoStart ctrl-alt-del.target irreversibly
Eelco Dolstra [Tue, 7 May 2013 12:16:53 +0000 (14:16 +0200)]
Start ctrl-alt-del.target irreversibly

This makes ctrl-alt-del reboots more robust, just like "systemctl
reboot".

11 years agoRemove outdated ifupdown problem from README.Debian
Michael Biebl [Tue, 30 Jul 2013 19:59:54 +0000 (21:59 +0200)]
Remove outdated ifupdown problem from README.Debian

The /lib/init/rw directory is gone since wheezy, so talking about that
in README.Debian is likely to be more confusing then helpful.

11 years agoRemove Python byte code files on dh_auto_clean
Michael Biebl [Tue, 30 Jul 2013 19:58:22 +0000 (21:58 +0200)]
Remove Python byte code files on dh_auto_clean

11 years agoMake systemctl enable/disable call update-rc.d for sysv init scripts (#709780)
Michael Stapelberg [Mon, 29 Jul 2013 20:01:21 +0000 (22:01 +0200)]
Make systemctl enable/disable call update-rc.d for sysv init scripts (#709780)

11 years agoRemove outdated known problem from README.Debian (Thanks joeyh)
Michael Stapelberg [Sun, 28 Jul 2013 20:02:25 +0000 (22:02 +0200)]
Remove outdated known problem from README.Debian (Thanks joeyh)

11 years agojournald: DO recalculate the ACL mask, but only if it doesn't exist
Jan Alexander Steffens (heftig) [Tue, 28 May 2013 18:45:34 +0000 (20:45 +0200)]
journald: DO recalculate the ACL mask, but only if it doesn't exist

Since 11ec7ce, journald isn't setting the ACLs properly anymore if
the files had no ACLs to begin with: acl_set_fd fails with EINVAL.

An ACL with ACL_USER or ACL_GROUP entries but no ACL_MASK entry is
invalid, so make sure a mask exists before trying to set the ACL.

11 years agoSet debug-shell to /bin/sh
Michael Biebl [Thu, 25 Jul 2013 01:55:34 +0000 (03:55 +0200)]
Set debug-shell to /bin/sh

Debian doesn't have /sbin/sushell, so use /bin/sh in
debug-shell.service.

11 years agoinitctl: use irreversible jobs when switching runlevels
Zbigniew Jędrzejewski-Szmek [Wed, 24 Jul 2013 02:01:39 +0000 (22:01 -0400)]
initctl: use irreversible jobs when switching runlevels

Spotted by uau in #systemd.

11 years agoRelease version 204-2 to experimental
Michael Biebl [Wed, 24 Jul 2013 21:48:15 +0000 (23:48 +0200)]
Release version 204-2 to experimental

11 years agoUpdate changelog
Michael Biebl [Wed, 24 Jul 2013 21:47:23 +0000 (23:47 +0200)]
Update changelog

11 years agoMerge branch 'upstream-fixes-experimental' into debian-experimental
Michael Biebl [Wed, 24 Jul 2013 22:46:16 +0000 (00:46 +0200)]
Merge branch 'upstream-fixes-experimental' into debian-experimental

11 years agoRestart systemd-logind.service on upgrades
Michael Biebl [Wed, 24 Jul 2013 21:26:24 +0000 (23:26 +0200)]
Restart systemd-logind.service on upgrades

The CreateSession D-Bus API of systemd-logind changed between v44 and
v204 [1]. As result, newer versions of libpam-systemd fail to register a
new session if they talk to the old systemd-logind process.
Restarting systemd-logind.service when upgrading from v44 means we will
lose existing sessions, but as wheezy still has ConsoleKit as default,
this shouldn't matter that much.  Closes: #717403

[1] https://bugs.freedesktop.org/show_bug.cgi?id=67131

11 years agoAdjust package priorities
Michael Biebl [Wed, 24 Jul 2013 21:04:48 +0000 (23:04 +0200)]
Adjust package priorities

Since other packages now depend on the systemd packages, make all
packages Priority: optional, with the exception of udev and libudev1,
which remain Priority: important, and systemd-sysv, which remains
Priority: extra due to the conflict with sysvinit.  Closes: #717365

11 years agoAdd Breaks against consolekit (<< 0.4.6-1) for udev-acl
Michael Biebl [Wed, 24 Jul 2013 20:38:56 +0000 (22:38 +0200)]
Add Breaks against consolekit (<< 0.4.6-1) for udev-acl

The udev-acl tool was removed from udev in version 182 and added to
consolekit. The Breaks ensures that a recent enough version of
consolekit is installed which is shipping this tool. While we will
switch to logind for dynamic device ACLs, this will ensure a smooth
upgrade path in the mean time.  Closes: #717385

11 years agoBump Standards-Version to 3.9.4
Michael Biebl [Wed, 24 Jul 2013 20:36:58 +0000 (22:36 +0200)]
Bump Standards-Version to 3.9.4

No further changes.

11 years agoBind ifup@.service to the network device
Michael Biebl [Wed, 24 Jul 2013 20:31:58 +0000 (22:31 +0200)]
Bind ifup@.service to the network device

This ensures that ifdown is run when the device is removed and the
service is stopped.  Closes: #660861, #703033

We eventually should rework that and instead of calling systemctl in
net.agent, start the service directly from the udev rule via
ENV{SYSTEMD_WANTS}.

11 years agoRemove obsolete support for configurable udev root
Michael Biebl [Wed, 24 Jul 2013 20:18:12 +0000 (22:18 +0200)]
Remove obsolete support for configurable udev root

Upstream has removed support for a configurable UDEV_ROOT in udev 176
when devtmpfs became mandatory. We already removed this from the SysV
init script in commit dbad4c2a8dcd69e310de897daf8eb150bdcec249.

11 years agoRemove "exit 0" from udev.postrm
Michael Biebl [Sun, 21 Jul 2013 13:38:16 +0000 (15:38 +0200)]
Remove "exit 0" from udev.postrm

Since we are using "set -e", adding "exit 0" at the end of the script
is superfluous.

11 years agoInstall 50-firmware.rules in the initramfs and udeb
Michael Stapelberg [Tue, 23 Jul 2013 16:33:24 +0000 (18:33 +0200)]
Install 50-firmware.rules in the initramfs and udeb

In commit 6a1547f157703083f1352a831131f5bc76b6fb05 we switched from our
own firmware agent to the upstream one, but forgot to install
50-firmware.rules in the initramfs and the udev-udeb package.

11 years agosystemd-tmpfiles-setup-dev: remain after exit
Tom Gundersen [Mon, 22 Jul 2013 14:59:26 +0000 (16:59 +0200)]
systemd-tmpfiles-setup-dev: remain after exit

Without this, tmpfiles-setpu-dev  would be re-run if any other service,
which pulls in basic.target, was started after setup-dev was finished
and before basic.target was active.

11 years agoSwitch the hwdb trigger to interest-noawait
Michael Biebl [Sun, 21 Jul 2013 13:33:42 +0000 (15:33 +0200)]
Switch the hwdb trigger to interest-noawait

11 years agoRemove leftover symlink to debian-enable-units
Daniel Schaal [Fri, 19 Jul 2013 16:15:41 +0000 (18:15 +0200)]
Remove leftover symlink to debian-enable-units

11 years agoDon't pass static start priorities to dh_installinit anymore
Michael Biebl [Sat, 20 Jul 2013 16:03:59 +0000 (18:03 +0200)]
Don't pass static start priorities to dh_installinit anymore

They haven't been used by update-rc.d for a while and generate a warning now.

11 years agoAdd handling of Message Catalog files.
Daniel Schaal [Sat, 20 Jul 2013 04:58:42 +0000 (06:58 +0200)]
Add handling of Message Catalog files.

This compiles the files from /usr/lib/systemd/catalog into a
binary database, which is used by journalctl to provide
additional information for log entries. journalctl only uses
the binary database in /var/lib/systemd/catalog/database.

Call journalctl --update-catalog in systemd.postinst and when
triggered by dpkg to update the Message Catalog database.
Also add systemd.postrm to remove the database on purge.

See http://www.freedesktop.org/wiki/Software/systemd/catalog/

11 years agoEnable verbose build logs by passing --disable-silent-rules to configure.
Daniel Schaal [Sun, 21 Jul 2013 05:17:47 +0000 (07:17 +0200)]
Enable verbose build logs by passing --disable-silent-rules to configure.

See https://wiki.debian.org/ReleaseGoals/VerboseBuildLogs

11 years agoRelease version 204-1 to experimental
Michael Biebl [Thu, 18 Jul 2013 22:33:18 +0000 (00:33 +0200)]
Release version 204-1 to experimental

11 years agoUpdate changelog
Michael Biebl [Thu, 18 Jul 2013 22:28:49 +0000 (00:28 +0200)]
Update changelog

11 years agoSkip 75-persistent-net-generator.rules if net.ifnames==1
Michael Stapelberg [Thu, 18 Jul 2013 22:02:55 +0000 (00:02 +0200)]
Skip 75-persistent-net-generator.rules if net.ifnames==1

11 years agoFix RUNDIR to be /run/udev, udevadm info --run does not exist anymore
Michael Stapelberg [Thu, 18 Jul 2013 22:01:35 +0000 (00:01 +0200)]
Fix RUNDIR to be /run/udev, udevadm info --run does not exist anymore

11 years agoRevert "udev: network device renaming - immediately give up if the target name isn...
Michael Biebl [Wed, 17 Jul 2013 23:04:07 +0000 (01:04 +0200)]
Revert "udev: network device renaming - immediately give up if the target name isn't available"

This reverts commit 97595710b77aa162ca5e20da57d0a1ed7355eaad.

Since we are keeping the old persistent network interface naming for
now, and make the new naming scheme [1] explictly opt-in [2], re-apply
this old hack to make the renaming less likely to fail.

[1] http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
[2] d5051f7666e25ecf2b32c7076ce18c1de969d01b

11 years agofix udev.service → systemd-udevd.service renaming issue
Michael Stapelberg [Thu, 18 Jul 2013 21:13:35 +0000 (23:13 +0200)]
fix udev.service → systemd-udevd.service renaming issue

See the commit contents for a comment.

11 years agoRestart the journal service on upgrades
Michael Biebl [Thu, 18 Jul 2013 19:31:50 +0000 (21:31 +0200)]
Restart the journal service on upgrades

11 years agoInstall a dpkg file trigger for /lib/udev/hwdb.d
Michael Biebl [Thu, 18 Jul 2013 19:20:01 +0000 (21:20 +0200)]
Install a dpkg file trigger for /lib/udev/hwdb.d

Run udevadm hwdb --update automatically whenever a packages drops a
file in that directory.

11 years agoRun udevadm hwdb --update on install/upgrades
Michael Biebl [Thu, 18 Jul 2013 19:14:35 +0000 (21:14 +0200)]
Run udevadm hwdb --update on install/upgrades

and cleanup the hwdb.bin file on purge.

11 years agoudev hwdb: Store binary database in libdir, not in /etc
Martin Pitt [Fri, 14 Jun 2013 10:21:38 +0000 (12:21 +0200)]
udev hwdb: Store binary database in libdir, not in /etc

Storing huge binary files in /etc/ is ugly, as this is neither user-editable
nor configuration of any kind. This is just a cache file, and does not need
backing up.

Move it to udevlibexecdir instead.

11 years agoMake net.ifnames opt-in instead of opt-out
Michael Stapelberg [Thu, 18 Jul 2013 19:09:42 +0000 (21:09 +0200)]
Make net.ifnames opt-in instead of opt-out

With this commit, you need to actively specify net.ifnames=1 to get
predictable network interface names:
http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

11 years agoMerge patch(es) from upstream-fixes branch
Michael Biebl [Thu, 18 Jul 2013 19:02:01 +0000 (21:02 +0200)]
Merge patch(es) from upstream-fixes branch

11 years agoMerge branch 'upstream-fixes-experimental' into debian-experimental
Michael Biebl [Thu, 18 Jul 2013 19:01:25 +0000 (21:01 +0200)]
Merge branch 'upstream-fixes-experimental' into debian-experimental

11 years agoLaunch logind via a shell wrapper
Michael Biebl [Thu, 18 Jul 2013 18:49:14 +0000 (20:49 +0200)]
Launch logind via a shell wrapper

We need to setup the cgroupfs mount and the runtime directory before
starting logind. Use a shell script which is triggered by the D-Bus
service.

11 years agoAlways tag devices for uaccess/logind
Michael Biebl [Thu, 18 Jul 2013 18:42:37 +0000 (20:42 +0200)]
Always tag devices for uaccess/logind

Since we want to use logind on non-systemd systems, no longer skip the
rules and always tag the devices.

This reverts most of 4b3902b70ae4bf453c9437ac28e202f715c4e171.

11 years agoStart logind on demand via libpam-systemd
Michael Biebl [Thu, 18 Jul 2013 18:36:39 +0000 (20:36 +0200)]
Start logind on demand via libpam-systemd

Don't make pam_sm_open_session() a NOP if logind is not running. Trying
to access logind via D-Bus will start it on demand.

11 years agoClean up closing empty sessions when not running under systemd
Martin Pitt [Tue, 12 Mar 2013 15:00:13 +0000 (16:00 +0100)]
Clean up closing empty sessions when not running under systemd

In logind's manager_gc(), submit "closing" session to garbage collection, to
clean them up once they are empty. This is usually triggered through
manager_cgroup_notify_empty() from a org.freedesktop.systemd1.Agent.Released
signal, but that doesn't happen when not running under systemd.

11 years agoMake logind/hostnamed/localed/timedated D-Bus D-Bus activatable
Michael Biebl [Thu, 18 Jul 2013 18:31:49 +0000 (20:31 +0200)]
Make logind/hostnamed/localed/timedated D-Bus D-Bus activatable

We want to use those services outside of systemd, so we make them
activatable over D-Bus.

11 years agoUpdate localed to use the Debian config files
Michael Biebl [Thu, 18 Jul 2013 18:18:31 +0000 (20:18 +0200)]
Update localed to use the Debian config files

Prefer /etc/default/locale over /etc/locale.conf when writing the locale
configuration and use /etc/default/keyboard instead of
/etc/X11/xorg.conf.d/00-keyboard.conf.

Path courtesy of Steve Langasek.

11 years agoAdd back support for Debian specific config files
Michael Biebl [Thu, 18 Jul 2013 18:11:02 +0000 (20:11 +0200)]
Add back support for Debian specific config files

For now fallback to read the locale settings from /etc/default/locale.

This reverts the Debian specific bits from
46a2911bf2780f616396df5671dd901cc7cb54fd
99f861310d3f05f4e86cb9582a94b891dbb3382b

11 years agoRevert "service: ignore dependencies on $syslog and $local_fs in LSB scripts"
Michael Biebl [Thu, 18 Jul 2013 18:07:31 +0000 (20:07 +0200)]
Revert "service: ignore dependencies on $syslog and $local_fs in LSB scripts"

This reverts commit 5d4caf565471ff3401bd9b53aa814c8545a18a93.

Since we added back support for rcS style services, we re-add support for
$local_fs, too.

11 years agoRevert "service: drop support for SysV scripts for the early boot"
Michael Biebl [Thu, 18 Jul 2013 18:04:12 +0000 (20:04 +0200)]
Revert "service: drop support for SysV scripts for the early boot"

This reverts the Debian specific bits from commit
3cdebc217c42c8529086f2965319b6a48eaaeabe.

We still have 100+ packages shipping SysV init scripts in rcS so it's
too early to drop support for that. We eventually might use a separate
generator for that, as this would be cleaner. But for now that will do.

11 years agoRemove obsolete debian/udev*.dirs entries
Michael Stapelberg [Thu, 18 Jul 2013 18:22:47 +0000 (20:22 +0200)]
Remove obsolete debian/udev*.dirs entries

11 years agoudev: install rules files and extras
Michael Stapelberg [Thu, 18 Jul 2013 16:58:26 +0000 (18:58 +0200)]
udev: install rules files and extras

This makes the debdiff file lists approximately identical, minus
expected differences.