Commit Graph

374 Commits

Author SHA1 Message Date
Michael Biebl
e14b697bbe 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
2013-07-25 00:46:10 +02:00
Michael Biebl
e7408c3c00 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
2013-07-25 00:46:10 +02:00
Michael Biebl
8646caae71 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
2013-07-25 00:46:10 +02:00
Michael Biebl
36e53cb53f Bump Standards-Version to 3.9.4
No further changes.
2013-07-25 00:46:10 +02:00
Michael Biebl
e6a954ff04 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}.
2013-07-25 00:46:10 +02:00
Michael Biebl
5049dbeef9 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 dbad4c2a8d.
2013-07-25 00:46:06 +02:00
Michael Biebl
bf0c1602dd Remove "exit 0" from udev.postrm
Since we are using "set -e", adding "exit 0" at the end of the script
is superfluous.
2013-07-24 22:16:16 +02:00
Michael Stapelberg
ce5b4ea89b Install 50-firmware.rules in the initramfs and udeb
In commit 6a1547f157 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.
2013-07-23 18:33:24 +02:00
Michael Biebl
97705351a3 Switch the hwdb trigger to interest-noawait 2013-07-21 15:33:42 +02:00
Daniel Schaal
5c31508eef Remove leftover symlink to debian-enable-units 2013-07-21 15:33:08 +02:00
Michael Biebl
8c331b989d 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.
2013-07-21 15:30:07 +02:00
Daniel Schaal
6853903fe2 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/
2013-07-21 12:10:48 +02:00
Daniel Schaal
c07a22c15a Enable verbose build logs by passing --disable-silent-rules to configure.
See https://wiki.debian.org/ReleaseGoals/VerboseBuildLogs
2013-07-21 11:54:03 +02:00
Michael Biebl
2d2246f0d1 Release version 204-1 to experimental 2013-07-19 00:33:18 +02:00
Michael Biebl
76c82a9db3 Update changelog 2013-07-19 00:32:22 +02:00
Michael Stapelberg
e5206e9751 Skip 75-persistent-net-generator.rules if net.ifnames==1 2013-07-19 00:03:12 +02:00
Michael Stapelberg
729f06f073 Fix RUNDIR to be /run/udev, udevadm info --run does not exist anymore 2013-07-19 00:03:12 +02:00
Michael Stapelberg
0bcf5c0126 fix udev.service → systemd-udevd.service renaming issue
See the commit contents for a comment.
2013-07-18 23:13:35 +02:00
Michael Biebl
faacffefa2 Restart the journal service on upgrades 2013-07-18 21:31:50 +02:00
Michael Biebl
fc0c2cfb83 Install a dpkg file trigger for /lib/udev/hwdb.d
Run udevadm hwdb --update automatically whenever a packages drops a
file in that directory.
2013-07-18 21:22:01 +02:00
Michael Biebl
1e8cf451fc Run udevadm hwdb --update on install/upgrades
and cleanup the hwdb.bin file on purge.
2013-07-18 21:15:25 +02:00
Michael Biebl
0e51dddd36 Merge patch(es) from upstream-fixes branch 2013-07-18 21:02:01 +02:00
Michael Biebl
e8aef519f6 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.
2013-07-18 20:52:43 +02:00
Michael Stapelberg
c1c1ca9146 Remove obsolete debian/udev*.dirs entries 2013-07-18 20:34:39 +02:00
Michael Stapelberg
d451c9084b udev: install rules files and extras
This makes the debdiff file lists approximately identical, minus
expected differences.
2013-07-18 20:09:04 +02:00
Michael Biebl
3ad456c7a1 Re-add write_cd_rules and write_net_rules from udev 175
Upstream dropped those generators. Since the debian specific rules
(75-cd-aliases-generator.rules and 75-persistent-net-generator.rules)
still use them, we copy them from the udev 175 source package along with
rule_generator.functions which is used by those generators.
2013-07-18 19:41:21 +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 Stapelberg
1862d150b3 remove edd_id, not shipped upstream anymore
removed upstream with commit 4774868cca
2013-07-18 19:29:19 +02:00
Michael Biebl
c6217ab865 udev-udeb: use new, absolute path for udevd 2013-07-18 19:29:19 +02:00
Michael Biebl
c71dcd81b9 initramfs: copy compat symlink for udevadm
We don't want to break existing initramfs scripts which use the old,
absolute path /sbin/udevadm.
2013-07-18 19:29:19 +02:00
Michael Stapelberg
11cd7b5449 initramfs: use new paths when installing udevadm and udevd 2013-07-18 19:29:19 +02:00
Michael Stapelberg
b0277324ad s/udev.service/systemd-udevd.service/g 2013-07-18 19:29:19 +02:00
Michael Stapelberg
d1364fa9f9 net.agent: update check to work for systems with standalone logind 2013-07-18 19:29:19 +02:00
Michael Stapelberg
dbad4c2a8d udev.init: drop experimental support for "$udev_root" != "/dev" 2013-07-18 19:29:19 +02:00
Michael Stapelberg
c4671ce831 drop debian/extra/write_dev_root_rule (discouraged upstream for a long time)
This file created /dev/root, but programs should not rely on that
anyway. If this breaks anything, we need to fix it in that particular
program.

See also http://bugs.debian.org/670146
2013-07-18 19:29:19 +02:00
Michael Stapelberg
6a1547f157 drop custom firmware.agent, we use the upstream builtin now
The upstream one is called in 50-firmware.rules
2013-07-18 19:29:19 +02:00
Michael Biebl
8929a2ff30 Add changes from 175-7.2 NMU (Remove blacklisting of lxfb)
Patch courtesy of Ben Hutchings <ben@decadent.org.uk>
2013-07-18 19:29:19 +02:00
Michael Biebl
6ab50b03cf Add changes from 175-7.1 NMU (upstart support)
Patch courtesy of Steve Langasek <steve.langasek@ubuntu.com>
2013-07-18 19:29:15 +02:00
Michael Biebl
b56f8637a1 Merge remaining files from udev 175-7
The patches from udev were either merged upstream, applied directly,
added as files to debian/extra/ or dropped:

- debian/patches/commit-4b50a3d
  Applied upstream in 4b50a3d004
- debian/patches/fix_gtkdoc_oot
  Fixed upstream
- debian/patches/libudevpc_no_librt
  Fixed upstream in e712ffcce6
- debian/patches/vio_type
  Dropped for now.
- debian/patches/debian_rules
  Added as debian/extra/rules/*
- debian/patches/extra_agents
  Added as debian/extra/*.agent and debian/extra/hotplug.functions
- debian/patches/extra_initramfs
  Added as debian/extra/initramfs.*
- debian/patches/extra_installer
  Added as debian/extra/udev.*
- debian/patches/extra_modprobeconf
  Added as debian/extra/fbdev-blacklist.conf and
  debian/extra/make-fbdev-blacklist
- debian/patches/extra_misc
  Added as debian/extra/links.conf and debian/extra/create_static_nodes
- debian/patches/dont-build-some-helpers
  Dropped, since we will use the upstream firmware agent now
- debian/patches/libgudev_in_usr
  Applied as 418b0a2d41
- debian/patches/rules_compat_qemu
  Dropped, only needed for kernel versions <= 2.6.32
- debian/patches/use_run_tmpfs
  Dropped, since wheezy /run is mandatory
- debian/patches/dev_root_rule
  Dropped, discouraged upstream
- debian/patches/udevd_in_sbin
  Dropped, we will use the $libexec path now in the .service file and
  provide compat symlinks
- udev_conf_comments
  Applied as c82d84e916
2013-07-18 18:57:39 +02:00
Michael Biebl
60deb48806 Update debian/copyright using the machine-readable copyright format 1.0. 2013-07-18 18:25:36 +02:00
Michael Biebl
8096c0cbbb Don't pull any patches from upstream-fixes branch for now
Otherwise gitpkg refuses to build. Once we have any fixes, we'll add
them to upstream-fixes-experimental.
2013-07-18 17:12:53 +02:00
Michael Biebl
845db5deec Don't install unused files
We don't really need the RPM macros and we currently don't ship the
kernel-install tool, so remove those two directories.
2013-07-18 17:12:48 +02:00
Michael Biebl
84a01447b7 Revert "Don't hard-code Pre-Depends in udev but use ${misc:Pre-Depends} instead"
This partially reverts commit 238dae120d.

We are using debconf in preinst, so we need the debconf dependency in
Pre-Depends, but dh_installdebconf only adds it to ${misc:Depends}.
Which means we have to specify it manually.
2013-07-18 16:54:22 +02:00
Michael Biebl
0d1c65bd60 Create /sbin/udevadm compat symlink for udev-udeb
Avoid breaking the installer by creating a compat symlink for udevadm.
Can be removed once we have checked (and updated) d-i and all related
udebs.
2013-07-18 16:54:22 +02:00
Michael Biebl
47d2341620 Remove the dpkg-triggered debian-enable-units script
This was a temporary workaround for wheezy. Packages should use dh-systemd
now to properly integrate service files with systemd.
Remove the state files on upgrades.
2013-07-18 16:54:22 +02:00
Michael Biebl
1fb48b3157 Install Debian specific files for systemd 2013-07-18 16:54:22 +02:00
Michael Biebl
69a9a18e17 Add udeb reference to the libudev1 shlibs file 2013-07-18 16:54:22 +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
5ff97674be Create a few compat symlinks for the udev package
most notably /sbin/udevadm and /sbin/udevd.
2013-07-18 16:54:15 +02:00