Commit Graph

273 Commits

Author SHA1 Message Date
наб
5a4d8d2698
debian/extra/kernel/postrm.d/systemd-boot: prefix with zz-
Doesn't actually matter, but the kernel handbook says we must and we
already renamed postinst
2022-09-22 22:33:10 +02:00
наб
95a520751e
debian/extra/kernel-install.d/85-initrd.install: explicitly ignore unknown verbs
Upstream reasoning applies:
  852f98d6aa
2022-09-22 13:33:44 +02:00
наб
f1c9fdd98a
debian/extra/kernel-install.d/85-initrd.install: install default initrd with versioned basename
This fixes #1020396 in a superior way by using
$KERNEL_INSTALL_STAGING_AREA, available since systemd v251:
  367165a406

By just copying the file we both simplify our code,
but defer to 90-loaderentry to correctly permission it,
and simply never generate an unversioned initrd in the first place!
2022-09-22 10:44:01 +02:00
наб
1016a4e221
debian/extra/kernel/postinst.d/systemd-boot: prefix with zz-
Since we explicitly (though this is hidden by indirection through
85-initrd.install) depend on /boot/initrd.img-$1
existing or not existing, hard-order ourselves at the end

The zz- prefix matches grub
2022-09-21 04:03:27 +02:00
Luca Boccassi
f867a96bd1 homed: make PAM rules higher priority than unix users
Make sure homed is tried first when logging in. This is required
after adding nss-systemd support for 'shadow' in /etc/nsswitch.conf.
See Arch bug: https://bugs.archlinux.org/task/72967
2022-07-17 19:22:12 +01:00
Michael Biebl
cceab74398 sd-boot: exit early in initramfs and kernel hook scripts if package is removed but not purged 2022-06-28 14:33:34 +02:00
Andrea Pappacoda
9a6d87f1c6
sd-boot: add initramfs hook
Closes: #826045
2022-06-24 16:41:30 +02:00
Luca Boccassi
74127387da sd-boot: add kernel hooks scripts 2022-06-24 09:08:35 +00:00
Luca Boccassi
6c8df64aa8 Add systemd-homed package
Closes: #976960
2022-06-04 00:18:41 +02:00
Dimitri John Ledkov
2dfa43fe19 udev-udeb: ship modprobe.d snippet to force scsi_mod.scan=sync in d-i
This ensures that all scans are completed, before installer reaches
partitioning stage, when kernel is configured with
CONFIG_SCSI_SCAN_ASYNC=y. This prevents confusing error message "no disk drives
detected", and drives magically appearing if one re-enters partitioning screen
a little while later.

LP: #1751813
2022-02-17 21:53:21 +01:00
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