summaryrefslogtreecommitdiffstats
path: root/src/basic/namespace-util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-08-04debug-generator: Use generator_add_symlink()Daan De Meyer1-11/+4
2023-08-04tpm2: use CreatePrimary() to create primary keys instead of Create()Dan Streetman2-25/+81
Older versions used CreatePrimary() to create a transient primary key to use when creating a sealed data object. That was changed in v254 to use Create() instead, which should result in the same transient key, but it seems some hardware TPMs refuse to allow using Create() to generate primary keys. This reverts to using CreatePrimary() to create primary key. Fixes: #28654
2023-08-04tree-wide: Fix -Wmaybe-uninitialized compilation warningsDaan De Meyer5-8/+8
2023-08-04Add tool to display emergency log message full-screen on boot failure.OMOJOLA JOSHUA8-35/+505
2023-08-03switch-root: reopen target directory after it is mountedYu Watanabe1-0/+12
Fixes a bug introduced by f717d7a40a696b351415976f22a4f498c401de41.
2023-08-03shutdown: do not umount recursively before MS_MOVEYu Watanabe3-6/+10
Unmounting filesystem will be done gracefully by shutdown itself. Follow-up for f2c1d491a539035d6cc1fa53a7cef0cbc8d52902 and 268d1244e87a35ff8dff56c92ef375ebf69d462e.
2023-08-03shutdown: disable recursive mount of /run/ on switching rootYu Watanabe1-2/+4
Mounting /run/ recursively may be harmless, but not necessary on shutdown as the new root is /run/initramfs. Follow-up for b12d41a8bb7c99f7d7a1c7821a886d98b42d9ce0.
2023-08-03po: Translated using Weblate (Turkish)Oğuz Ersen1-12/+14
Currently translated at 88.1% (200 of 227 strings) Co-authored-by: Oğuz Ersen <oguz@ersen.moe> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/tr/ Translation: systemd/main
2023-08-03vconsole: support KEYMAP=kernel for preserving kernel keymapMike Yuan3-4/+10
Follow-up for #26089 and #28505 Currently, if default-keymap is not empty, there's no way to ask vconsole-setup to retain the kernel keymap. Let's accept a special value "kernel" for that purpose. Addresses the problem mentioned in https://github.com/systemd/systemd/pull/28505#issuecomment-1663681665
2023-08-03hwdb: Mute SW rfkill keys on MSI Wind U100Maxim Mikityanskiy1-2/+6
Kernel patch [1] fixed bugs in rfkill handling on MSI Wind U100. Now that the HW rfkill reports the correct state, and the SW rfkill is controllable from userspace, it's necessary to mute KEY_WLAN and KEY_BLUETOOTH generated on HW rfkill state changes. Otherwise, the userspace will react to these keys and toggle the SW rfkill as well, which is not desired, because the user may end up with non-functional radios if HW and SW rfkills are out of sync. Blocking these keycodes doesn't impair user experience, because the desktop environment can still react to HW rfkill events and act accordingly (for example, show notifications). While at it, use "unknown" instead of "reserved" to mute keys, to avoid the "atkbd serio0: Unknown key pressed" flood in dmesg. [1]: https://lore.kernel.org/all/20230721145423.161057-1-maxtram95@gmail.com/
2023-08-03mkosi: Update to latestDaan De Meyer5-1/+17
We modify all our scripts to execute in the image instead of on the hosts. In the future we can adapt them to run on the host.
2023-08-03meson: set suite for all tests, and adjust suite for some testsYu Watanabe3-17/+32
2023-08-03meson: also merge declarations of fuzzers with other executablesYu Watanabe14-318/+241
2023-08-03meson: merge declarations of normal and test executablesYu Watanabe25-661/+521
2023-08-03test: rename udev-rule-runner -> test-udev-rule-runnerYu Watanabe5-19/+19
This partially revert 0454cf05d38d289474ca65c1917d414b2958f6b5. The executable actually does not work with itself, but needs to be combined with test-udev.py. But, even so, the executable is for testing. In the next commit, test and normal executables are declared in the same way, and naming of the executable becomes essential to classify them. Let's rename the executable and prefix with 'test-'.
2023-08-03meson: use template to declare udev pluginsYu Watanabe2-35/+52
2023-08-03meson: introduce HAVE_DMI flagYu Watanabe4-4/+7
The condition is used at several places. Let's introduce a simple flag for that.
2023-08-03test: fix test executable nameYu Watanabe1-1/+1
Follow-up for 82a1d6d09625b656c991f25e82b5651c74a55945.
2023-08-03meson: move several test declarationsYu Watanabe2-139/+160
One of the notable change is that previously test-sysusers.sh was installed unconditionally, but now it is installed only when sysusers is enabled. Another change is that test-sysv-generator is now re-introduced which was mistakenly dropped by 6c713961ab0831fe744a2df9c4e9e258b6ba3105.
2023-08-03repart: Add --copy-from optionDaan De Meyer3-93/+274
--copy-from synthesizes partition definitions from the given image which are then applied to the repart algorithm. In its most basic form, this allows copying an image to another device but it can also be combined with --definitions to copy + add partitions in the same call to repart.
2023-08-02include missing sys/file.h for LOCK_EXKhem Raj7-0/+7
2023-08-02test/test-sizeof: Include sys/timex.h for struct timexKhem Raj1-0/+1
Fixes ../git/src/test/test-sizeof.c:64:41: error: incomplete definition of type 'struct timex' 64 | check(typeof(((struct timex *)0)->freq), SIZEOF_TIMEX_MEMBER); | ~~~~~~~~~~~~~~~~~~~^
2023-08-02journalctl: do not add io event source for stdout if it is a fileYu Watanabe1-4/+10
Fixes a bug introduced by 713342d9b09d717e9942ed08bd620c9159a98fb8. Fixes #28636. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2228089.
2023-08-02varlink: allocate the buffer for varlink FDs on the heapFrantisek Sumsal1-3/+7
Since it's ~16K, which might cause issues in environments with limited stack space. Resolves: #28635
2023-08-02udev: decrease devlink priority for encrypted partitionsYu Watanabe1-0/+5
Decrease devlink priority for encrypted partitions, and make the priority for decrypted DM devices relatively higher. This is for the case that an encrypted partition and its decrypted DM device have the same label.
2023-08-02include sys/file.h for LOCK_EXKhem Raj1-0/+1
Fixes | ../git/src/basic/user-util.c:708:30: error: use of undeclared identifier 'LOCK_EX'; did you mean 'LOCK_BSD'? | 708 | r = unposix_lock(fd, LOCK_EX); | | ^~~~~~~ | | LOCK_BSD Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-02NEWS: PrivateNetwork implies PrivateMountsEtienne Dechamps1-0/+3
This is clearly a change that can break existing units, and broke my system in at least two different ways. For this reason this should have been added to NEWS in #26458, specifically c2da3bf, but wasn't.
2023-08-02network-generator: make network file generated from ip=dhcp matches only ↵Yu Watanabe3-10/+21
physical interfaces Otherwise, it also matches later created virtual devices, and that breaks networks generated and managed by container management services, like docker. Closes #28626.
2023-08-02meson: fix name of test-network-generatorYu Watanabe1-1/+1
As the test executable is named based on the first source file.
2023-08-02boot: Make file info size a constantJan Janssen2-7/+8
2023-08-02boot: Fix boot counting for XBOOTLDR entriesJan Janssen1-13/+20
We were passing the dir handle for the ESP to config_entry_bump_counters(), which will obviously fail if the entry actually resides on the XBOOTLDR partition. Fixes: #28637
2023-08-02bless-boot: Actually return successfullyJan Janssen1-0/+1
$ journalctl -u systemd-bless-boot.service systemd[1]: Starting Mark the Current Boot Loader Entry as Good... systemd-bless-boot[536]: Marked boot as 'good'. (Boot attempt counter is at 2.) systemd-bless-boot[536]: Can't find boot counter source file for '/loader/entries/arch.conf': Device or resource busy systemd[1]: Finished Mark the Current Boot Loader Entry as Good.
2023-08-01sysupdate: Move fdisk partition flags helpers to fdisk-util.cDaan De Meyer3-81/+80
2023-08-01repart: Rename partition_exclude/defer() to partition_type_exclude/defer()Daan De Meyer1-18/+14
2023-08-01build(deps): bump systemd/mkosidependabot[bot]1-1/+1
Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 5866c0ff3b36d350c943016e5a3b115f7a95d37f to c6dd95b6eae0386579071cbf44fd838ce28b7237. - [Release notes](https://github.com/systemd/mkosi/releases) - [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md) - [Commits](https://github.com/systemd/mkosi/compare/5866c0ff3b36d350c943016e5a3b115f7a95d37f...c6dd95b6eae0386579071cbf44fd838ce28b7237) --- updated-dependencies: - dependency-name: systemd/mkosi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01ukify: Only run systemd-measure after adding all sectionsDaan De Meyer1-7/+13
We were running systemd-measure before adding the sbat section, let's fix that. Also make sure we only pass --linux to systemd-measure once instead of twice.
2023-08-01test: install systemd-homed for openSUSEFranck Bui1-0/+1
This new sub-package has been recently introduced.
2023-08-01test: console fonts are located in /usr/share on openSUSEFranck Bui1-2/+2
2023-08-01test: skip tests earlier when we do not have enough privilegesYu Watanabe1-1/+3
Hopefully fixes #28624.
2023-08-01udev-builtin-net_id: first parse USB or BCMA identifier, then parse PCI ↵Yu Watanabe1-131/+54
properties Previously, we first generate names based on the PCI slot and ACPI onboard index, and then append an identifier based on USB or BCMA bus if it exists in between the PCI bus and the interface. However, if there exists USB or BCMA bus, the name based on the ACPI onboard index is not used. So, let's invert the order; first generate USB or BCMA identifier if the bus exists, then prepend the name with the PCI slot identifier. With this change, we can drop Names struct, and each naming logic becomes self-consistent.
2023-08-01udev-builtin-net_id: split out names_pci_onboard_label() from dev_pci_onboard()Yu Watanabe1-17/+32
Then call it only when it is necessary. The label is used only when the interface is directly connected to the PCI bus, and it does not have the SR-IOV feature (or the naming based on SR-IOV is disabled).
2023-08-01udev-builtin-net_id: drop redundant copy of BCMA identifier in names_bcma()Yu Watanabe1-21/+13
Then, this makes names based on the BCMA and PCI identifiers in names_bcma(). No functional change, just refactoring.
2023-08-01udev-builtin-net_id: split out get_bcma_specifier() from names_bcma()Yu Watanabe1-17/+37
This contains redundant copy of BCMA identifier, but that will be dropped in the next commit. No functional change, just refactoring and preparation for later commits.
2023-08-01udev-builtin-net_id: drop redundant copy of USB identifier in names_usb()Yu Watanabe1-36/+28
This makes the names based on the USB identifier (and possibly with PCI specifier) built in names_usb() No functional change, just refactoring.
2023-08-01udeb-builtin-net_id: split out get_usb_specifier() from names_usb()Yu Watanabe1-40/+59
This contains redundant copy of USB identifier, but that will be dropped in the next commit. No functional change, just refactoring and preparation for later commits.
2023-08-01build(deps): bump actions/labeler from 4.2.0 to 4.3.0dependabot[bot]1-1/+1
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.2.0 to 4.3.0. - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/0967ca812e7fdc8f5f71402a1b486d5bd061fe20...ac9175f8a1f3625fd0d4fb234536d26811351594) --- updated-dependencies: - dependency-name: actions/labeler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01build(deps): bump meson from 1.1.1 to 1.2.0 in /.github/workflowsdependabot[bot]1-3/+3
Bumps [meson](https://github.com/mesonbuild/meson) from 1.1.1 to 1.2.0. - [Release notes](https://github.com/mesonbuild/meson/releases) - [Commits](https://github.com/mesonbuild/meson/compare/1.1.1...1.2.0) --- updated-dependencies: - dependency-name: meson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01Revert "repart: Allow combining CopyBlocks= and CopyFiles="Daan De Meyer3-38/+31
This reverts commit dea0dc7ba2d779e5b65cb029395216859408931c.
2023-08-01Revert "repart: Add --oem and OEM="Daan De Meyer4-79/+0
This reverts commit 47c7805579bd54f2c149c80b22caed6f71ea01a7.
2023-08-01Revert "units: Import all repart credentials in systemd-repart.service"Daan De Meyer1-1/+0
This reverts commit ed6b99dbf121f8ad3e68a1eb8e2fff4d4bdf3066.