Commit Graph

12817 Commits

Author SHA1 Message Date
Martin Pitt
cf65a16b97 Restore udev watches on block device changes
Patch cherry-picked from upstream git.

Closes: #789060
LP: #1466081
2015-06-17 18:59:54 +02:00
Martin Pitt
47d7095cbd 80-networking.rules: Only call agents for add|remove
They don't handle other events, and net.agent just logs an error message. Avoid
wasted cycles on calling these scripts for change|move.
2015-06-17 14:42:49 +02:00
Martin Pitt
f02c90c827 Drop Skip-99-systemd.rules-when-not-running-systemd-as-in.patch
The rules mostly just attach tags systemd specific properties which are
harmless under other init systems, and systemd-sysctl also works there.
2015-06-17 12:16:04 +02:00
Martin Pitt
66439fe3ea Link check: test "systemd" binary as well, show binaries 2015-06-17 11:42:03 +02:00
Martin Pitt
c992598b78 Don't run link check with nocheck build option to avoid breaking cross-builds 2015-06-17 11:21:29 +02:00
Martin Pitt
5a33d4b966 Also check during build that other binaries do not link against /usr
This is particularly important for udev. It's not required for e. g. logind or
machined, but as currently none of these link against /usr let's keep this
strict for now and adjust it once we need it.
2015-06-17 10:02:05 +02:00
Martin Pitt
24b267b53c Check during build that systemd and systemd-journald don't link against anything in /usr
This prevents bugs like #771652 and #788913 in the future.
2015-06-17 08:00:45 +02:00
Martin Pitt
77fca23cb9 ifupdown-hotplug autopkgtest: Put back alternative *.cfg suffix
Older ifupdown versions apparently require a suffix, so provide a symlink for
it. Follow-up fix for 775ec4755.
2015-06-16 17:46:56 +02:00
Martin Pitt
d7b6c14d26 Revert "Automate building packages for upstream trunk"
This reverts commit e394c1c056.

Maintaining the upstream patches in master creates too much noise. We'll
maintain this separately here:

  http://anonscm.debian.org/cgit/pkg-systemd/trunk-ci.git
2015-06-16 15:33:53 +02:00
Martin Pitt
65a48a85fa net.agent: When running under systemd, run everything in the foreground
This avoids killing the forked child in the middle of its operation under
systemd when the parent exits. Up to systemd 220 forked children still survived
for several seconds, but under 221 they get cleaned up right away.
2015-06-16 15:16:34 +02:00
Michael Biebl
e56b6ae7a2 Whitespace police 2015-06-16 14:29:39 +02:00
Martin Pitt
616101286a ifupdown-hotplug: Fix cleanup
We can't have more than one trap in a shell script.
2015-06-16 12:41:02 +02:00
Martin Pitt
775ec4755b ifupdown-hotplug autopkgtest: Fix config name in interfaces.d/
It must not have a suffix in Debian. Also clean up the file after the test.
2015-06-16 12:35:34 +02:00
Martin Pitt
e394c1c056 Automate building packages for upstream trunk
- Add debian/extra/build-upstream-master-dsc script. This checks
    out upstream git, applies debian/, applies some packaging modifications,
    applies most of our Debian patches (ignoring the backported upstream
    ones and ignoring fuzz), and builds a dsc.
 - Add debian/patches/upstream-master/: These patches override the ones in
   debian/patches/ for trunk builds, in order to apply.
2015-06-16 10:24:46 +02:00
Martin Pitt
9f00032d92 fsckd-daemon-for-inter-fsckd-communication.patch: Add fsckd.c to POTFILES.in
This fixes "make check" for current upstream git master.
2015-06-16 09:01:17 +02:00
Martin Pitt
1066a14684 path-util-Fix-path_is_mount_point-for-files.patch is upstream, adjust patch series 2015-06-16 07:54:38 +02:00
Martin Pitt
f0877bf545 Add-support-for-rcS.d-init-scripts-to-the-sysv-gener.patch: Drop unnecessary hunk
This doesn't change behaviour and doesn't apply cleanly to current trunk.
2015-06-16 07:48:33 +02:00
Martin Pitt
972bbc8e26 Switch to net.ifnames persistant network interfaces
Deprecate the old 75-persistent-net-generator.rules.

See the ML discussion for details:
     https://lists.debian.org/debian-devel/2015/05/msg00170.html
     https://lists.debian.org/debian-devel/2015/06/msg00018.html

  - Drop Make-net.ifnames-opt-in-instead-of-opt-out.patch, to use
    net.ifnames by default.
  - Revert-udev-network-device-renaming-immediately-give.patch: Adjust
    patch comment.
  - Drop 75-persistent-net-generator.rules, write_net_rules helper and
    rule_generator.functions.
  - Adjust udev's README.Debian accordingly, and describe the migration.
    This needs to happen manually as there is no robust way of doing this
    automatically.
  - Add udev NEWS file for announcing this change and pointing to udev's
    README.
  - udev.postinst: Drop write_interfaces_rules().
  - udev.postinst: Disable net.ifnames on systems which did not support
    75-persistent-net-generator.rules (most importantly, virtualized guests)
    to avoid changing network interface names on upgrade.

LP: #1454254
2015-06-15 20:09:57 +02:00
Martin Pitt
fe5330d76a fix bug ref in changelog for "Ignore comments in /etc/hostname" 2015-06-15 14:30:30 +02:00
Michael Biebl
134c6ce3d8 Replace the remainder of Fix-paths-in-man-pages.patch with an upstream provided patch 2015-06-13 11:00:24 +02:00
Michael Biebl
702a751c5c Enable seccomp support on arm64 as well 2015-06-12 08:06:15 +02:00
Martin Pitt
5c05a7026c gbp pq patch noise 2015-06-11 10:04:37 +02:00
Martin Pitt
e480b40c01 releasing package systemd version 220-6 2015-06-11 09:25:54 +02:00
Martin Pitt
5a9a0e7d25 Stop installing tmp.mount by default
There are still situations where it becomes active through dependencies from
other units, which is surprising, hides existing data in /tmp during runtime,
and it isn't safe to have a tmpfs /tmp on every install scenario.

  - d/rules: Ship tmp.mount in /usr/share/systemd/ instead of
    /lib/systemd/systemd.
  - systemd.postinst: When tmp.mount already was enabled, install tmp.mount
    into /etc and keep it enabled.
  - systemd.postinst: When enabling tmp.mount because of RAMTMP=yes, copy it
    from /usr/share.
  - Drop Don-t-mount-tmp-as-tmpfs-by-default.patch and
    PrivateTmp-shouldn-t-require-tmpfs.patch, not necessary any more.

Closes: #783509
2015-06-11 09:13:34 +02:00
Martin Pitt
de81054914 Bump libcap-dev build dep to the version that provides libcap2-udeb
Closes: #787542
2015-06-11 00:05:05 +02:00
Martin Pitt
92bc4b1755 boot-and-services autopkgtest: Fix SeccompTest.test_failing
We need to reset scfail.service which we expect to fail. Otherwise
ServicesTest.test_no_failed fails on that when it runs later on.
2015-06-10 13:59:15 +02:00
Martin Pitt
1c84a61814 Drop "RequiresMountsFor=/tmp" from basic.target again
This avoids mounting tmp.mount by default, which we accidentally started doing
with 220.
2015-06-10 13:11:06 +02:00
Martin Pitt
cdea89592a debian/tests/boot-and-services: PEP-8 fixes 2015-06-10 12:59:35 +02:00
Martin Pitt
0ce4e05abc boot-and-services autopkgtest: Check that we don't get an unwanted tmp.mount
Unless /etc/fstab explicitly specifies it. This reproduces the regression of
220 to mount tmp.mount automatically.
2015-06-10 12:27:36 +02:00
Martin Pitt
cf875f3ec0 boot-and-services autopkgtest: Add SeccompTest
This verifies that SystemCallFilter works.
2015-06-10 08:21:33 +02:00
Martin Pitt
d2504c4c4d Enable seccomp support
Restrict the build dep on the architectures that provide libseccomp. This is
also why we can't configure with --enable-seccomp explicitly but rely on
auto-detection.

Closes: #760299
2015-06-10 07:55:43 +02:00
Martin Pitt
c74ff346e2 releasing package systemd version 220-5 2015-06-07 16:52:36 +02:00
Martin Pitt
34f4915b62 Refine detection of touch screen devices
Patches cherry-picked from upstream git.
2015-06-07 16:52:22 +02:00
Martin Pitt
812293bee7 Disable EFI support for udeb build 2015-06-06 16:00:40 +02:00
Martin Pitt
9db831ad74 Fix another escape parsing regression in Exec*= lines
Patches cherry-picked from upstream git.

Closes: #787256
2015-06-04 12:25:52 +02:00
Martin Pitt
51009270be Add debian/extra/01-mac-for-usb.link: Use MAC based names for network interfaces which are (directly or indirectly) on USB
Path based names are inadequate for dynamic buses like USB.

See discussion on

  https://lists.debian.org/debian-devel/2015/05/msg00170.html

and revised proposal on

  https://lists.debian.org/debian-devel/2015/06/msg00018.html
2015-06-04 12:14:26 +02:00
Martin Pitt
291f0e840d debian/udev.README.Debian: Document net.ifnames, and how to write udev rules for custom network names 2015-06-04 12:13:03 +02:00
Martin Pitt
3a9dd4974d debian/udev.README.Debian updates
Move network interface hotplug documentation into separate section.

Point out that "lo" does not need to be configured in ifupdown under systemd.
2015-06-03 12:52:35 +02:00
Martin Pitt
865ca5e8b7 Ignore test failures during build if /etc/machine-id is missing
This is the case in a few buildd chroots still.

Closes: #787258
2015-06-03 08:58:13 +02:00
Martin Pitt
364fc07eab gbp pq patch noise after previous cherry-pick 2015-06-03 08:34:00 +02:00
Martin Pitt
7adbce014a dracut: Fix path to systemd-fsck
Patch cherry-picked from upstream trunk.

Closes: #787553
2015-06-03 08:33:17 +02:00
Martin Pitt
8c2556e1d6 debian/control: Replace obsolete Python2 version header with X-Python3-Version 2015-06-03 08:27:51 +02:00
Martin Pitt
2e27dcc8f6 debian/README.source: Upstream repository moved to github
Adjust cherry-picking instructions accordingly.
2015-06-03 08:24:00 +02:00
Martin Pitt
2c63dff7d2 releasing package systemd version 220-4 2015-06-02 08:16:39 +02:00
Martin Pitt
b378f1df66 Add debian/extra/rules/80-debian-compat.rules
This replaces three of our patches. These are independent udev rules to change
device permissions and add CD/DVD symlinks for compatibility with earlier
Debian releases.
2015-06-02 07:50:20 +02:00
Martin Pitt
de9580b22a Drop path_is_mount_point-handle-false-positive-on-some-fs.patch
It was already not applied in 220-1.

This needs to be re-thought and re-done against the current code, and overlayfs
in general. On overlayfs this still reports false positives for files that
changed in the upperdir, but this does not break systemd-machine-id-commit any
more.
2015-06-02 07:13:54 +02:00
Martin Pitt
3844936c93 Fix parsing of escape characters in Exec*= lines
Patch and test cherry-picked from upstream trunk.

Closes: #787256
2015-06-02 06:08:49 +02:00
Michael Biebl
e2b294170e Drop udev migration code from pre-wheezy 2015-06-02 01:17:13 +02:00
Michael Biebl
0ee61e098c Remove any vestiges of /dev/.udev/
This directory has been replaced by /run/udev/ since wheezy.
2015-06-02 01:15:33 +02:00
Michael Biebl
64723e627e Stop using /sbin/udevd and drop the compat symlink 2015-06-02 01:15:27 +02:00