summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd
AgeCommit message (Collapse)AuthorFilesLines
2023-04-28systemd: assert withUkify -> withEfinikstur1-0/+1
2023-04-23Merge master into staging-nextgithub-actions[bot]1-0/+4
2023-04-23systemd: disable libbpf if compiler-rt unsupportedAlyssa Ross1-0/+4
If we can't build compiler-rt, we can't have a clang for that platform. Example affected architecture: s390, which is useful for testing assumptions in Nixpkgs because it's a Linux architecture that we can't emulate. I've written buildPackages.targetPackages.llvmPackages even though it's the same thing as llvmPackages because of the comment in this file that warns people against relying on splicing for llvmPackages. Taking llvmPackages as an input directly would make it easier for people to make that mistake without seeing the comment.
2023-04-20Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-04-20Merge pull request #227119 from alyssais/same-tripleArtturi1-1/+1
Avoid same-triple cross in tests
2023-04-20Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-04-19systemd.tests.cross: fix on aarch64-linuxAlyssa Ross1-1/+1
We shouldn't try compiling to aarch64-unknown-linux-gnu from aarch64-unknown-linux-gnu, because that tends to confuse things and is not representative of actual cross compilation usage. In this case, kexec-tools didn't compile.
2023-04-19systemd: fix precedence in withLibBPF conditionAlyssa Ross1-1/+1
The Clang version check was being ignored, as long as the CPU version was greater than 6. Oops. Fixes: 0da24fa3ba0 ("systemd: disable BPF for ARMv5")
2023-04-14systemd: re-introduce hostnamed-localed-timedated-disable-methods-that-cha.patchFlorian Klink14-13/+119
In NixOS, /etc is NOT read-only, and most things in /etc are symlinks to /etc/static, which is a symlink into the nix store - so the upstream systemd "/etc is read-only" detection doesn't work. Fixes #224080.
2023-04-14systemd: re-do fsck patchFlorian Klink3-34/+153
This patches some more occurences, addresses upstream feedback, and was sent upstream at https://github.com/systemd/systemd/pull/27274.
2023-04-13systemd: reflow patches, remove whitespace error in Fix-hwdb-paths.patchFlorian Klink10-24/+23
2023-04-11Merge pull request #225040 from gdamjan/staging-systemd-253Florian Klink1-2/+2
systemd: 253.2 -> 253.3
2023-04-07Merge master into staging-nextgithub-actions[bot]1-22/+23
2023-04-07pkgsMusl.systemd: update patches (#225050)Yureka1-22/+23
2023-04-06systemd: 253.2 -> 253.3Дамјан Георгиевски1-2/+2
https://github.com/systemd/systemd-stable/compare/v253.2...v253.3 Commits: 5 Files changed: 5
2023-03-30systemd: fix ukify scriptLily Foster1-4/+5
The script requires a python3 shebang with an environment that includes python3Packages.pefile at runtime.
2023-03-30systemd: 253.1 -> 253.2Дамјан Георгиевски1-2/+2
https://github.com/systemd/systemd-stable/compare/v253.1...v253.2 Commits: 81 Files changed: 113
2023-03-26Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-03-24treewide: don't hardcode /nix/store (no rebuilds changes)Artturin1-2/+2
improve experience for other store locations
2023-03-13Merge pull request #216826 from gdamjan/systemd-253Florian Klink19-171/+68
systemd: 252.5 -> 253
2023-03-12systemd: disable the ukify toolДамјан Георгиевски1-0/+3
disable it just temporarily, until a solution is found for the cross-compilation dependency on python see https://github.com/NixOS/nixpkgs/pull/216826#issuecomment-1465228824 for more context
2023-03-08systemd: optional kmod integrationGarry Filakhtov1-5/+11
Expose a new `withKmod` option to be able to enable and disable kmod integration, including the `systemd-modules-load` tool for automatic modules loading during the system boot sequence.
2023-03-08systemd: make PAM integration optionalGarry Filakhtov1-1/+4
Expose a new `withPam` option to allow enabling and disabling integration with PAM stack, including the `systemd-user-sessions` daemon and the associated `.service` file, as well as `pam_systemd.so` PAM module for integration with `systemd-logind` and user session registration with the systemd cgroup hierarchy.
2023-03-08systemd: make libaudit optionalGarry Filakhtov1-1/+3
Expose a new `withAudit` flag (defaults to `true` for backwards compatibility) to be able to conditionally enable and disable an integration with the `libaudit` library, which is used to integrate with Linux Audit Framework for logging various security-relevant events.
2023-03-08systemd: make libacl optionalGarry Filakhtov1-1/+3
Expose a new `withAcl` flag (defaults to true for backwards compatibility) to be able to conditionally enable and disable an integration with `libacl` library, which is used by variety of systemd tools and daemon, e.g. `journald` will check ACLs in addition to regular permissions when accessing journal files and `systemd-nspawn` will update ACL entries when used with the `--private-users-chown` flag.
2023-03-08systemd: make libidn2 optionalGarry Filakhtov1-3/+4
Expose a new `withLibidn2` flag (defauts to true for backwards compatibility) to be able to conditionally enable and disable integration with `libidn2`, which is used by the `systemd-network` and `systemd-resolved` to support internationalized domain names.
2023-03-05systemd: 253 -> 253.1Florian Klink1-2/+2
Changelog: ``` 6c327d74aa hwdb: update to 11875a98e4f1c31e247d99e00c7774ea3653bafd 0b81fcd16d chase-symlinks: Always open a dirfd to the root directory aa20a210a0 chase-symlinks: chase_symlinks_at() AT_FDCWD fixes bb3e44323b escape: add missing non-NULL parameter assertions c4e7cf2bd7 test-escape: Add tests for escaping bogus UTF-8 sequences e906fd2421 escape: Ensure that output is always valid UTF-8 1a22006574 virt: correctly detect QEMU emulated pSeries guests 5ee19fdfa0 psi-util: fix error handling 9ffa0d439f journald: remove triplicate logging about failure to write log lines 4f7f93cc6a journald: downgrade various log messages from LOG_WARNING to LOG_INFO a2dc51cd8c journald: make sure shall_try_append_again() logs about all return codes passed in, not just some 144ac494ec systemctl: print better message if default target is masked 791754f683 Revert "dissect-image: don't probe swap partitions needlessly" d0e7841dce rules: remove redundant duplicate comparisons dc98d58dd8 man: add two missing commands to synopsys e093acd062 core/dbus-socket: check the socket path is absolute a719c2ec2f sd-event: fix error handling 58c821af60 sd-event: always initialize sd_event.perturb 2bfb07b22f systemctl: show "Until:" field only for service and scope units d9abd8babe tmpfiles.d: drop misleading comment 0f4dbe6367 Enable TPM by default with SetCredentialEncrypted 8d8240bdf6 stub: Fix unaligned read 44c2ff5b1e efi: drop executable-stack bit from .elf file f2460b78b9 logind-session: make stopping of idle session visible to admins 1947b9939c sleep: check if we're on AC power before checking battery capacity 452cad62c8 install: fail early if specifier expansion failed eae11e3f06 homectl: add missing break 9024afb994 core/manager: falling back to execute generators without sandboxing aac692160e man/tmpfiles.d: adjust the table in synopsis, improve spelling d2739b8c14 test: disable pipefail when testing interactive firstboot 755431b233 ukify: Set fast_load option when parsing PE files 343e90462f core: permit sending augmented enable/disable methods ba1cb4156b process-util: show requested process name in the log 5140da8937 systemctl: edit: fix double free of instanced name c4cdbb978f journalctl: fix output when --lines is used with --grep 6dafcad55c loop-util: fix error condition and return value ec6c1fbf7d Correct journal misspell 6b6df9a845 cryptsetup: check the existence of salt by salt_size > 0 cd5de2811a boot: Fix assertion failure 01b90e1588 pid1: generate compat warning for SystemCallArchitectures= if seccomp is off a3177cbe54 core/mount: fix default target for /sysusr/usr and its child 3168bda640 mkosi: configure multiarch libdir in debian/ubuntu builds 51b7acfcef tpm2: fix build failure without openssl a88e35bf95 resolved: Fall back to TCP if UDP is blocked ```
2023-03-05systemd: 252.5 -> 253Дамјан Георгиевски19-171/+65
systemd v253 changelog/NEWS: https://github.com/systemd/systemd/blob/v253/NEWS NixOS changes: 0007-hostnamed-localed-timedated-disable-methods-that-cha.patch was dropped, because systemd gained support to handle read-only /etc. *-add-rootprefix-to-lookup-dir-paths.patch required some updates too, as src/basic/def.h moved to src/basic/constants.h. systemd/systemd#25771 switched p11kit to become dlopen()'ed, so we need to patch that path. added a note to the 23.05 release notes to recommend `nixos-rebuild boot` Co-authored-by: Florian Klink <flokli@flokli.de>
2023-02-23Merge staging-next into staginggithub-actions[bot]1-1/+1
2023-02-23Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross1-1/+1
Conflicts: pkgs/development/libraries/pmdk/default.nix
2023-02-22treewide: move NIX_CFLAGS_COMPILE to the env attrsetArtturin1-1/+1
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
2023-02-17Merge pull request #208269 from ElvishJerricco/systemd-stage-1-fsckFlorian Klink1-5/+16
Systemd stage 1 fsck
2023-02-13Merge pull request #214207 from Artturin/ssytemdbuildbash1Artturi1-3/+12
2023-02-08systemd-stage-1: fsckWill Fancher1-5/+16
2023-02-07Merge pull request #215094 from chuangzhu/systemd-want-gcryptFlorian Klink1-2/+1
systemd: fix build when withResolved=false and withImportd=true
2023-02-07systemd: fix build when withResolved=false and withImportd=trueChuang Zhu1-2/+1
2023-02-02systemd: disallowedReferences nativeBuildInputsArtturin1-2/+11
add cross to passthru.tests to prevent cross breaking
2023-02-02systemd: don't reference build bashArtturin1-1/+1
the .install files retained references to build bash $ pwd /nix/store/yfzncfa577cbc0r1bm1fjdc1szyy0dif-systemd-aarch64-unknown-linux-gnu-252.4/lib $ tree kernel kernel ├── install.conf └── install.d ├── 50-depmod.install └── 90-loaderentry.install
2023-01-31Merge staging-next into staginggithub-actions[bot]1-1/+2
2023-01-31Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-01-30systemd: disable BPF for ARMv5Alyssa Ross1-0/+1
ARMv5 does not have hardware floating point, so can't build systemd's BPF code.
2023-01-29systemd: 252.4 -> 252.5Дамјан Георгиевски1-2/+2
https://github.com/systemd/systemd-stable/compare/v252.4...v252.5 Commits: 81 Files changed: 103
2023-01-27systemd: use non-function pattern for badPlatformsAdam Joseph1-1/+1
Closes #212925
2023-01-22Merge master into staging-nextgithub-actions[bot]1-0/+1
2023-01-22systemd.meta.badPlatforms: include isStatic predicateAdam Joseph1-0/+1
2023-01-16systemd: fix tpm2 driver initNick Cao2-0/+45
2023-01-14Merge master into staging-nextgithub-actions[bot]1-0/+1
2023-01-13systemd: default withLibBPF to false if isMips64Adam Joseph1-0/+1
libBPF does not compile for mips64 targets using clang (rathern than gcc) because clang lacks the necessary _MIPS_SZPTR compiler builtin. Let's allow the rest of systemd to compile. - The glibc people noticed this problem [way back in 2011](https://sourceware.org/pipermail/libc-ports/2011-June/001959.html) and consider it to be a clang/llvm bug. I am inclined to agree. - [clang has the `_MIPS_SZPTR` builtin](https://github.com/llvm/clangir/blob/3af9cb5375084541165b4b63d36e3798801c95ab/clang/lib/Basic/Targets/Mips.cpp#L185) and seems to have had it since before they switched to git. This may in fact be a nixpkgs bug -- that we're not invoking clang in a way that tells the frontend to make the mips builtins available, even if the backend is emitting mips binaries. Or at least we aren't tricking systemd's build machinery into doing that.
2023-01-13pkgsMusl.systemd: fix build by updating patchsetAlyssa Ross1-17/+5
2023-01-05Merge staging-next into staginggithub-actions[bot]1-4/+11