Commit Graph

263 Commits

Author SHA1 Message Date
Lukas Märdian
14c3d06646 d/control: Ship oomd in a systemd-oomd package
Deploying the default configuration as used in Fedora.
2022-01-06 09:20:49 +01:00
Michael Biebl
a66d122048 Stop setting up device symlinks for CD-RW/DVD drives
Those udev rules were a Debian specific workaround that were mainly
added for compat with older software which wasn't able to automatically
discover those types of devices. Those rules didn't provide
stable/predictable names though, so remove them.

Closes: #991639
2021-07-31 19:32:56 +02:00
Michael Biebl
36e5fccd5f Update make-fbdev-blacklist to not blacklist hyperv_fb
See commit d899fd1037.

Gbp-Dch: Short
2021-05-07 12:24:59 +02:00
Michael Biebl
66483f56f0 Set executable bit for make-fbdev-blacklist script
Gbp-Dch: Ignore
2021-05-07 12:24:29 +02:00
Michael Biebl
1fb1176384 d/e/checkout-upstream: switch to main branch
See https://github.com/systemd/systemd/issues/16834
2021-05-07 12:23:58 +02:00
Michael Biebl
fadf93033a udev-udeb: setup /dev/fd, /dev/std{in,out,err} symlinks
As systemd-udevd no longer sets them up itself, we create them manually
after mounting devtmpfs. This avoids breaking applications which expect
those symlinks.

Closes: #975018
2021-04-12 20:21:00 +02:00
Matthias Klumpp
63f22a7a8d Configure localed to run locale-gen to generate missing locale
This applies an (upstreamed) patch to permit systemd-localed to run
locale-gen to generate missing locale when requested to switch the
system locale.
This makes localectl usable on Debian for changing locale without
breaking system localization or even prevent certain applications from
running at all after switching to a non-generated locale.
2021-01-18 03:05:05 +01:00
Michael Biebl
ec74429dbe getty-static.service: Skip if dbus-broker is installed
Check for the binary in /usr/bin as this makes it easier to move the
service files from /lib/systemd to /usr/lib/systemd.
2020-12-26 13:33:06 +01:00
Michael Biebl
8c0b1a1856 init-functions, getty-static.service: Don't hard-code path to systemctl binary
This should simplify an eventual move of systemctl from /bin to
/usr/bin.
2020-12-26 13:24:58 +01:00
наб
006bcd63f1
debian/extra/kernel-install.d/85-initrd.install: match initrd installation messages and uninstallation to 90-loaderentry.install 2020-12-09 18:53:57 +01:00
наб
409d924563
debian/extra/kernel-install.d/85-initrd.install: Don't install initrd when an explicit path was passed 2020-12-09 18:53:55 +01:00
Michael Biebl
7155afaeda init-functions: update LSB hook to not use ignore-dependencies
job-mode=ignore-dependencies, as currently used in the LSB hook during
bootup and shutdown, can have undesired side-effects, like changing the
ordering of services and ultimately causing them to fail, due to unmet
dependencies.
So simplify that, and only apply --no-block on reload requests during
bootup and shutdown.

Closes: #960594
2020-11-18 01:12:08 +01:00
Michael Biebl
351e5ec877 pam: include pam_keyinit session module in systemd-user
We want that systemd --user gets its own keyring, not the basic keyring
set up by systemd --system.
2020-11-17 21:35:00 +01:00
Michael Biebl
a318f0220d Remove resolvconf.conf drop-in, resolved integration moved to resolvconf package 2020-08-17 12:54:55 +02:00
Balint Reczey
a059399694 dhclient-exit-hooks.d/timesyncd: Act only when systemd-timesyncd is available
Otherwise the hook script might trigger an error if the
systemd-timesyncd package is uninstalled but not purged.

LP: #1873031
2020-07-05 11:09:31 +02:00
Dan Streetman
96b178356e 40-vm-hotadd.rules: check offline before onlining memory/cpus
The kernel will return EINVAL if the memory or cpu is already online, which
is harmless, but adds a confusing error to the log.  Avoid the error
message by only onlining if the memory or cpu is currently offline.

LP: #1876018
2020-06-30 15:09:51 -04:00
Topi Miettinen
32c0a18d2b
Delete empty lines at end of file
Upstream commit hooks don't allow empty lines and of course they serve no
purpose.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-05-16 11:25:10 +03:00
Michael Biebl
1454130b26 Install 60-block.rules in udev-udeb and initramfs-tools
The block device rules were split out from 60-persistent-storage.rules
into its own rules file in v220. Those rules ensure that change events
are emitted and the udev db is updated after metadata changes.

Closes: #958397
Thanks: Pascal Hambourg
2020-04-27 17:55:26 +02:00
Dan Streetman
65f46a7d14 remove Ubuntu-specific ondemand.service
New processors handle scaling/throttling in internal firmware
(e.g. intel_pstate), and do not require OS config.

Additionally, nobody else does this, not even Debian.

And finally, this has caused problems for years, e.g.:

https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1497375
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1503773
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1480320
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579278
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1806012
https://bugs.launchpad.net/charm-sysconfig/+bug/1873028
2020-04-16 10:53:10 -04:00
Dan Streetman
46f3d7af5e Follow symlinks when finding link files to copy into initramfs
If the /{etc,lib}/systemd/network directory itself is a symlink, the find
command will not actually find any of the files in the dir it links to.
Use the find -L param to follow symlinks.

Note that the -L does not need to be provided to the cp command, as when
using only the -p parameter symlinks are followed by default.  Also,
the [ -d ] test follows symlinks by default, and does not need changing.

LP: #1868892
2020-04-14 17:00:36 -04:00
Balint Reczey
d6483013d5 Ship systemd-timesyncd in a separate package
The new systemd-timesyncd package conflicting with other NTP-related
packages resolves the problems arising when installing systemd-timesyncd
and other NTP servers on the same system.

Co-authored-by: Michael Biebl <biebl@debian.org>
LP: #1849156
Closes: #805927, #947936
2020-04-02 16:36:09 +02:00
Michael Biebl
c6918ea83c Update udev-udeb to use 73-usb-net-by-mac.link 2019-12-02 23:44:12 +01:00
Michael Biebl
dcd337b646 Make it easier to override MAC based name policy for USB network adapters
Replace 73-usb-net-by-mac.rules with 73-usb-net-by-mac.link. The .link
file provides the same functionality but makes it easier to set a custom
name for USB network adapters via the systemd.link mechanism.

Closes: #941636
Thanks: Benjamin Poirier
2019-12-02 18:07:33 +01:00
Balint Reczey
511d5d5452 debian/extra/checkout-upstream: Use dots when deriving version from upstream
to sort higher than potential versions in Debian and also to conform native
package versioning practice.
2019-09-10 12:47:42 +02:00
Balint Reczey
6bbc230b0b d/e/checkout-upstream: Keep all autopkgtests when KEEP_DEBIAN_TESTS is set 2019-09-10 12:47:42 +02:00
Balint Reczey
f7ac1e2c61 d/e/checkout-upstream: Add KEEP_DEBIAN_PATCHES option to keep patches
The Debian patches that apply cleanly are kept when KEEP_DEBIAN_PATCHES
is set to give a better picture of how the tested upstream version
would work packaged.
2019-09-10 12:47:42 +02:00
Balint Reczey
2487c0ebc2 debian/extra/checkout-upstream: rebase only PRs on upstream master
This fixes testing arbitrary upstream commits with UPSTREAM_HEAD=<commit-id>.
2019-09-10 12:47:42 +02:00
Balint Reczey
551f1cc82a d/e/checkout-upstream: UPSTREAM_REPO can override default systemd repo 2019-09-10 12:47:42 +02:00
Dan Streetman
8797c07910 d/extra/rules/73-special-net-names.rules: use $$ instead of $ in PROGRAM= value
The use of the '$' character in PROGRAM="" values is supposed to be doubled
if it is intended for use by the program being run, instead of as a
substitution variable for udev to replace before running the program; i.e.
it should be '$$' if udev should pass a single '$' in its place to the
program command line.

However, if the variable it precedes isn't a valid substitution variable
name, it is left in place for the program to evaluate.  So, while not
correct per the 'man udev' documentation, this udev rule's use of single
'$' characters has (and still currently does) work correctly.

However, since commit d7aee41db35f808bca92d4910bf6e52cec3f8e59, un-doubled
use of '$' characters like this has resulted in a warning message being printed:
[   17.560125] systemd-udevd[132]: /lib/udev/rules.d/73-special-net-names.rules:14 Invalid value "/bin/sh -ec 'D=${DEVPATH#*/vio/}; D=${D%%%%/*}; D=${D#????}; D=${D#0}; D=${D#0}; D=${D#0}; D=${D#0}; echo ${D:-0}'" for PROGRAM (char 16: invalid substitution type), ignoring, but please fix it.

This corrects the rule to use $$ instead.

Also, just to note, the rule already correctly doubles the '%' chars
that it uses.
2019-09-05 06:10:13 +00:00
Michael Biebl
bae57a28ad d/e/r/73-usb-net-by-mac.rules: skip if iface name was provided by user-space
See https://github.com/systemd/systemd/issues/12858 and
https://lkml.org/lkml/2014/7/10/88

Gbp-Dch: Short
2019-08-31 15:32:39 +00:00
Michael Biebl
395b4a77f2 d/e/r/73-usb-net-by-mac.rules: import net.ifnames only for network devices
Closes: #934589
2019-08-31 15:32:39 +00:00
Michael Biebl
5b162f252f Merge branch 'master' into experimental 2019-08-21 22:07:20 +02:00
Dan Streetman
5da4807394 d/e/checkout-upstream: set user.name, user.email if unset
later calls to git commit want these; sometimes git fails without them
2019-07-24 07:25:58 -04:00
Dan Streetman
77c1d70d5a d/e/checkout-upstream: switch from 'quilt' to 'native' format
We're removing all patches and using upstream code; there is no
need to remain quilt format.
2019-07-24 07:14:28 -04:00
Dan Streetman
58d873bc4f d/e/checkout-upstream: create git commits for each change
Create a commit with any debian/ changes, commit with all upstream code
changes, and a final commit with the updated changelog entry.

For normal operation, where this script is being called from upstream
autopkgtest tests, there is no need for creating git commits with the
changes made by this script; however, creating the commits won't (shouldn't)
break anything in the normal upstream test process.

Where creating git commits with this script's changes is useful is for a
local git repository used for development - specifically, to maintain
a git repo that includes the upstream systemd source code, but also the
debian/ code (including tests) so that the package can be built in a ppa
and tested using autopkgtest, without needing to use github to perform the
testing.
2019-07-24 07:10:17 -04:00
Dan Streetman
fa1d28714b d/e/checkout-upstream: add UPSTREAM_KEEP_CHANGELOG param
It can be useful to skip creating the new changelog entry, if
the caller only wants to pull the latest upstream code into a
git repo; this adds a env var that allows doing that.

By default, without the var set, the changelog entry is created,
so existing behavior is unchanged.
2019-07-18 18:29:18 -04:00
Dan Streetman
ef56e584d5 d/e/checkout-upstream: move change to debian/ files above other changes
This is in preparation for creating git commits for the changes.
2019-07-18 17:49:34 -04:00
Dan Streetman
1f1e47cfd2 d/e/checkout-upstream: don't remove .git
It is *super* annoying when running this in a git repo, as it
completely wipes out the local git repo.  This commit leaves the
.git directory in place.
2019-07-18 17:26:23 -04:00
Mert Dirik
3f1c8e9d4c 40-systemd: Don't fail if SysV init script uses set -u and $1 is unset
Closes: #931719
2019-07-18 14:06:29 +02:00
Martin Pitt
fe89a87ef7 debian/extra/checkout-upstream: Support submodules
See https://github.com/systemd/systemd/pull/12151
2019-05-17 20:35:04 +02:00
Michael Biebl
ae11ca4f5b Revert "debian/extra/checkout-upstream: Support submodules"
Upstream CI was switched to use the experimental branch, so let's
revert this commit in master to keep the changes for buster minimal.

This reverts commit 3b80938124.

Gbp-Dch: Ignore
2019-05-17 19:51:37 +02:00
Martin Pitt
3b80938124 debian/extra/checkout-upstream: Support submodules
See https://github.com/systemd/systemd/pull/12151
2019-04-12 08:24:53 +02:00
Michael Biebl
e1b3868e8b Revert "Drop systemd-timesyncd.service.d/disable-with-time-daemon.conf"
Apparently Conflicts= are not a reliable mechanism to ensure alternative
NTP implementations take precedence over systemd-timesyncd.

This reverts commit b2ced99893.

Closes: #902026
2019-03-31 19:37:41 +00:00
Benjamin Drung
7abfa8dc77 Fix shellcheck issues in initramfs-tools scripts
initramfs-tools will use shellcheck on its own code and will probably
ship a shellcheck autopkgtest that checks its hooks and script
directory. That's how the shellcheck issues in systemd's initramfs-tools
scripts were found.

```
shellcheck -e SC1091 $(find debian/extra/initramfs-tools/ -type f)
```
2019-01-12 20:36:33 +01:00
Michael Biebl
e23edb75e4 40-systemd: Use case instead of if statement
Makes it more readable and is also a bit faster.

Gbp-Dch: Ignore
2018-12-01 23:07:47 +01:00
Mert Dirik
f0bee70691 40-systemd: Improve heuristics for init-d-script
Improve heuristics for scripts run via init-d-script so that
the redirection works even for older init-d-script versions
without the __init_d_script_name variable.
2018-12-01 17:41:49 +01:00
Mert Dirik
2a61f775aa 40-systemd: Honour __init_d_script_name
Make /lib/lsb/init-functions.d/40-systemd use __init_d_script_name
(if available) to figure out real script name.

Closes: #826214
2018-12-01 17:41:04 +01:00
Michael Biebl
fc8847c12b systemctl: Tell update-rc.d to skip creating any systemd symlinks
When calling update-rc.d via systemd-sysv-install, tell it to skip
creating any systemd symlinks as we want to handle those directly in
systemctl. Older update-rc.d versions will ignore that request, but
that's ok. This means we don't need a versioned dependency against
init-system-helpers.

Closes: #743217
2018-11-18 23:24:28 +01:00
Martin Pitt
a2344f4e8d Fix wrong "nobody" group from sysusers.d
Fix our make-sysusers-basic sysusers.d generator to special-case the
nobody group. "nobody" user and "nogroup" group both have the same ID
65534, which is the only special case for Debian's static users/groups.
So specify the gid explicitly, to avoid systemd-sysusers creating a
dynamic system group for "nobody".

Also clean up the group on upgrades.

Thanks to Keh-Ming Luoh for the original patch!

Closes: #912525
2018-11-17 17:11:04 +01:00
Michael Biebl
e90328bc3b Use upstream patches to add support for /run/initctl
Gbp-Dch: Ignore
2018-03-31 21:29:19 +02:00