Commit Graph

12996 Commits

Author SHA1 Message Date
Martin Pitt
9c06fcf12f udev.postinst: Check that 50-virtio-kernel-names.link does not already exist 2015-09-15 12:03:42 +02:00
Martin Pitt
d594e71010 Fix changing virtio network interface names on upgrades
udev 226 introduced predictable interface names for virtio
(https://github.com/systemd/systemd/pull/1119). Create
/etc/systemd/network/50-virtio-kernel-names.link on upgrade to disable this, to
avoid changing e. g. "eth0" to "ens3" in QEMU instances and similar
environments.

Closes: #799034
2015-09-15 09:37:25 +02:00
Martin Pitt
470c174f69 debian/udev.init: Drop noexec from /dev again
According to upstream (https://github.com/systemd/systemd/pull/1265) some
device drivers expose memory-mapped device nodes which need "exec". So just set
nosuid.
2015-09-15 07:17:17 +02:00
Martin Pitt
63dff1e213 debian/udev.init: Mount /dev file system with nosuid and noexec
LP: #1450960
2015-09-14 08:18:28 +02:00
Martin Pitt
5727af75e9 releasing package systemd version 226-1 2015-09-10 16:53:58 +02:00
Martin Pitt
f78570e878 Drop debian/systemd-journal-remote.postrm
Removing system users is potentially dangerous (there might be a leftover
process after purging).
2015-09-10 16:52:49 +02:00
Michael Biebl
3d5695224e Explicitly call "update-rc.d udev-finish remove"
Don't rely on insserv to remove the dangling symlinks as a side-effect
of calling "update-rc.d udev defaults" later in postinst.
2015-09-10 16:31:56 +02:00
Michael Biebl
046ca3b0e5 Bump version to 226-1 for rm_conffile since 225-2 was never released 2015-09-10 16:31:18 +02:00
Michael Biebl
7c05c7ef38 insserv-generator: Use correct type for variable 'e'
Fixes
../src/insserv-generator/insserv-generator.c:109:23: warning: comparison
of unsigned expression < 0 is always false [-Wtype-limits]
2015-09-09 17:11:55 +02:00
Michael Biebl
433df6f12d debian/systemd-journal-remote.postrm: Fix bashism when testing for deluser
See also https://wiki.debian.org/AccountHandlingInMaintainerScripts.
2015-09-09 16:57:33 +02:00
Michael Biebl
f304569a92 Update build instructions to use "gbp clone" instead of "gbp-clone"
All gbp-* commands have been removed from git-buildpackage.
2015-09-09 16:52:17 +02:00
Michael Biebl
be383771b2 Drop libsystemd-login-dev
All reverse dependencies have been updated to use libsystemd-dev directly.
2015-09-09 16:49:59 +02:00
Martin Pitt
8790740a48 systemd-networkd-dispatcher: Add some missing ifupdown variables, clean environment
This is a suid root program, and while it can only be called from networkd,
let's be paranoid and set up a defined environment.

Add some environment variables which ifupdown sets and which scripts might
expect: $LOGICAL, $METHOD, $ADDRFAM, $MODE, and $PHASE.

Drop setting $ADDRFAM from networkd-link.c.
2015-09-09 16:13:07 +02:00
Martin Pitt
b48cfb1565 systemd-networkd-dispatcher: Also pass on the DNS server list to if-up.d/ as $IF_DNS_NAMESERVERS
With that resolvconf or similar programs work as expected. Update
debian/README.Debian accordingly.
2015-09-09 15:26:46 +02:00
Martin Pitt
d67efc7cea debian/tests/networkd: Check that /etc/resolv.conf gets the DHCP's nameserver
Only do the check if it is a symlink, i. e. dynamically managed by
systemd-resolved or resolvconf.
2015-09-09 14:40:00 +02:00
Martin Pitt
ef30166f95 systemd-networkd-dispatcher: Set real uid to root
Otherwise the exec'ed run-parts will be back to the systemd-network user.
2015-09-09 14:35:57 +02:00
Martin Pitt
731e0179c9 Fix typo in debian/changelog 2015-09-09 10:48:38 +02:00
Martin Pitt
b2b6f2951e Rework networkd ifupdown integration
Drop networkd-if-up.d@.service and its invocation from net.agent again. It does
not work when restarting networkd and requires too much overhead.

Instead, add a suid root helper systemd-networkd-dispatcher which calls
run-parts, and patch networkd to run the wrapper at the appropriate time.

Add reference to LP: #1492129.
2015-09-09 10:46:46 +02: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
16ec786bfd debian/libsystemd0.symbols: Add new symbols from this release 2015-09-09 07:58:25 +02:00
Martin Pitt
2d7e7ebd7c New upstream release 226
- Fix scheduled shutdown to not shut down immediately. (Closes: #797763)
 - Fix description of CPE_NAME in os-release(5). (Closes: #797768)

Adjust patches to new upstream release.
2015-09-09 07:45:37 +02:00
Martin Pitt
15f9a2ce78 Merge tag 'upstream/226'
Upstream version 226
2015-09-09 07:26:03 +02:00
Martin Pitt
d9dfd2336c Imported Upstream version 226 2015-09-09 07:26:01 +02:00
Martin Pitt
ce4082524d Rename 01-mac-for-usb.link to 90-mac-for-usb.link so that it becomes easier to override 2015-09-08 12:36:23 +02:00
Martin Pitt
e88bd2a0d6 debian/changelog: Clarify why if-pre-up.d/ and if-down.d/ are not being called
Latest NetworkManager actually does call them.
2015-09-08 09:45:31 +02:00
Martin Pitt
bab3f8d39e net.agent: Only call networkd-if-up.d@.service when networkd is actually enabled or running
This avoids starting these units in vain if networkd is not being used. Note
that we can't just use "is-active", as these rules might already get triggered
at boot when networkd is not running yet.
2015-09-08 08:52:27 +02:00
Michael Biebl
dc2e9ca836 Drop the actual udev-finish helper script as well 2015-09-05 03:18:57 +02:00
Martin Pitt
843e0a1430 debian/udev.maintscript: Fix typo 2015-09-04 17:06:39 +02:00
Martin Pitt
e5331ca6b0 debian/README.Debian: Clarify "Going back to SysV init" section 2015-09-04 16:19:10 +02:00
Martin Pitt
f01d427bcb Fix "persistant" typo .. again
Write "Persistent" a hundred times, pitti!
2015-09-04 15:20:43 +02:00
Martin Pitt
b9ded82d45 debian/README.Debian: Document if*.d/ hook integration for networkd 2015-09-04 12:27:56 +02:00
Martin Pitt
e42be291b5 debian/README.Debian: Add documentation about networkd integration 2015-09-04 12:22:51 +02:00
Martin Pitt
897bafc833 debian/README.Debian: Update persistant journal documentation
Add a hint why you may want to enable persistant journal, and suggest to
uninstall system-log-daemon to avoid duplicate logging.
2015-09-04 11:56:09 +02:00
Martin Pitt
262aede581 debian/README.Debian: Update switching between SysV and systemd
As systemd is the default init now, replace the documentation how to switch to
systemd with how to switch back (temporarily or permanently) to SysV init. Also
move that paragraph to the bottom as it's now less important.
2015-09-04 11:53:41 +02:00
Martin Pitt
ae3e86d515 debian/control: Remove some boilerplate from the long descriptions
To more easily get to the point what a specific package actually does.
2015-09-04 08:21:45 +02:00
Martin Pitt
ceda74dec6 Drop debian/udev.udev-fallback-graphics.upstart
The vesafb module has been compiled into the kernel in both Debian and Ubuntu
for a fair while, this never had a systemd equivalent, and Debian never shipped
the accompanying rules for determining $PRIMARY_DEVICE_FOR_DISPLAY.
2015-09-04 08:18:00 +02:00
Martin Pitt
c700f841e7 Drop udev-finish
We needed this for the autogenerated CD and network interface names, but both
are gone now.
2015-09-04 08:09:38 +02:00
Martin Pitt
27f7cc9f9f Make networkd call if-up.d/ scripts when it brings up interfaces
With this, networkd becomes compatible with ifupdown and NetworkManager for
packages shipping hooks.

 - Add debian/extra/units/networkd-if-up.d@.service: Wait for a particular
   interface to be up, and call if-up.d/ for it if it is managed by
   networkd. Correspondingly, call if-post-down.d/ scripts when stopping.
 - debian/extra/udev-helpers/net.agent: Start/stop
   networkd-if-up.d@.service when interfaces appear/go away.
 - debian/tests/networkd: Verify that if-up.d/ and if-post-down.d/ scripts
   get run for a networkd managed interface.

Note that if-pre-up.d/ and if-down.d/ scripts are *not* being called + (like
NetworkManager), as they are unnecessary (if-pre-up.d) and unreliable
(if-down.d).

See Ubuntu blueprint for details:
https://blueprints.launchpad.net/ubuntu/+spec/foundations-w-networkd-vs-ifupdown
2015-09-03 16:18:05 +02:00
Martin Pitt
4801c2a5ba debian/tests/networkd: Add hotplug tests 2015-09-03 12:02:43 +02:00
Martin Pitt
f4207827dd Enable libseccomp support for mips64, mips64el, and x32
Closes: #797403
2015-09-03 09:41:48 +02:00
Michael Biebl
d86986a613 Release version 225-1 to unstable 2015-08-30 21:55:29 +02:00
Michael Biebl
a2c7e68e6f Drop our patch which removes rc-local-generator
rc-local.service acts as an ordering barrier even if its condition is
false, because conditions are evaluated when the service is about to be
started, not when it is enqueued. We don't want this ordering barrier on
systems that don't need/use /etc/rc.local.

See also:
1567308317
https://github.com/systemd/systemd/pull/268
2015-08-30 21:55:29 +02:00
Michael Biebl
3050fc85d6 Rely on build profiles to determine which packages should be skipped during build
and no longer specify that manually.
2015-08-30 21:55:28 +02:00
Michael Biebl
eff8a207b8 Strip trailing ',' for consistencies sake 2015-08-30 21:55:28 +02:00
Michael Biebl
844f0e0198 Small package description tweak 2015-08-30 21:55:28 +02:00
Michael Biebl
5e056e1ab2 Enable GnuTLS support as systemd-journal-remote makes sense mostly with encryption enabled 2015-08-30 21:55:26 +02:00
Michael Biebl
9ffc8643e7 Explicitly turn off the features we don't want in a stage1 build
Otherwise ./configure might enable them automatically if the build
dependencies are installed and "dh_install --fail-missing" will then
fail due to uninstalled files.
2015-08-30 20:38:59 +02:00
Michael Biebl
8b5ca88faf Add necessary system groups for systemd-journal-remote
Also remove the creation of the systemd-journal-remote group from
systemd.postinst. This is no longer needed as the tmpfiles snippet
requiring that group is now shipped by the systemd-journal-remote
package.
2015-08-30 20:38:56 +02:00
Michael Biebl
ab9f3398a3 Drop unnecessary Conflicts/Replaces from systemd-journal-remote
None of the files in this package were previously shipped by systemd.
2015-08-30 20:38:32 +02:00
Michael Biebl
3a0221b5a1 Add Debian bug ref for #792551 and #788269 2015-08-30 16:38:09 +02:00