nikstur
88f63d1165
nixos/binfmt: replace activationScript via tmpfiles
2023-10-25 23:44:01 +02:00
nikstur
a8f50f9919
nixos/activation: remove specialfs activationScript
...
The stage-2-init.sh script has the same functionality hardcoded so we do
not need it in the activationScript again.
2023-10-25 00:48:37 +02:00
nikstur
59e3726755
nixos/activation: replace var activationScript via tmpfiles
2023-10-25 00:48:37 +02:00
Julian Stecklina
3c1c4b65e9
nixos/timesyncd: replace activationScript via ExecPreStart
2023-10-25 00:48:35 +02:00
Martin Weinelt
0e4b63f713
Revert "nixos/systemd-boot: Avoid remote mypy executions"
...
This reverts commit ea0dcd0ae1
.
2023-10-23 03:38:13 +02:00
DavHau
cae154a67e
nixos/systemd-tmpfiles: add settings option
2023-10-23 00:34:23 +02:00
Will Fancher
13f325005c
Merge pull request #262740 from ElvishJerricco/systemd-stage-1-improve-udhcpc-assertion
...
systemd-stage-1: Improve udhcpc assertion
2023-10-22 13:46:38 -04:00
Will Fancher
1a6c2e4837
systemd-stage-1: Improve udhcpc assertion
2023-10-22 09:12:34 -04:00
Will Fancher
a662970807
Merge pull request #262167 from jakubgs/systemd/fix-autofs-config
...
systemd: rename required AUTOFS4_FS to AUTOFS_FS
2023-10-22 08:08:11 -04:00
nikstur
9b20e22b88
Merge pull request #262573 from ElvishJerricco/systemd-repart-stage-1-assertion
...
nixos/systemd-repart: Add assertion requiring systemd in initrd
2023-10-22 11:53:59 +02:00
Will Fancher
22325ce016
systemd-stage-1: Support for user shells
2023-10-21 13:24:16 -04:00
Will Fancher
b57c850790
nixos/systemd-repart: Add assertion requiring systemd in initrd
2023-10-21 12:29:34 -04:00
nikstur
6958acea7e
Merge pull request #262179 from ElvishJerricco/systemd-stage-1-specific-fs-packages
...
systemd-stage-1: Use specific fs packages
2023-10-21 13:25:42 +02:00
Bjørn Forsman
142074c2a8
nixos: fix bad mkEnableOption descriptions
...
Fix descriptions that don't account for (1) the "Whether to enable"
prefix or (2) the automatically added trailing dot.
2023-10-20 16:22:40 +01:00
Janne Heß
a1012b2160
nixos/switch-to-configuration: Allow not filtering units
2023-10-20 15:45:43 +02:00
Arian van Putten
0257e9f13a
Merge pull request #261449 from arianvp/growpart-online
...
nixos/grow-partition: Resize partition online instead of in initrd
2023-10-20 09:25:31 +00:00
Will Fancher
18013cc71e
systemd-stage-1: Use specific fs packages
2023-10-19 21:13:22 -04:00
Jakub Sokołowski
26c4e35cea
systemd: rename required AUTOFS4_FS to AUTOFS_FS
...
The `AUTOFS4_FS` name appears to be a legacy naming stub:
>Ok, I ran the script, and also decided that we might as well remove
>the AUTOFS4 legacy naming stub entry by now.
>
>It has been five years, and people will have either picked up the new
>name with 'make oldconfig', or they just don't use 'make oldconfig' at
>all.
https://lore.kernel.org/lkml/CAHk-=wgK9-Tx4BxYMrc0pg==mcaz3cjWF6-CBwVpM_BZAmf4JQ@mail.gmail.com/#r
That has been remove in 6.6 kernel and results in a failure:
```
error:
Failed assertions:
- CONFIG_AUTOFS4_FS is not enabled!
```
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-10-20 01:44:13 +02:00
nicoo
ea0dcd0ae1
nixos/systemd-boot: Avoid remote mypy executions
2023-10-19 20:58:52 +01:00
Arian van Putten
80a578580f
nixos/grow-partition: Resize partition online instead of in initrd
...
There's no reason to do this in initrd. Partitions can be resized online.
We just have to make sure it happens before we resize the file system.
This also makes grow-partition work with systemd-initrd
2023-10-19 12:34:27 +00:00
Philip Taron
173a3a25f0
Remove restriction on PhysicalDevice being int; reformat and document the Type field
2023-10-17 09:43:37 -07:00
Philip Taron
989cca26c4
systemd.network.netdev: Add support for WLAN devices
...
These are virtual interface, where one physical wifi adapter can have
more than one interface.
See https://systemd.network/systemd.netdev.html#%5BWLAN%5D%20Section%20Options
and dedf2d0054
2023-10-16 15:04:44 -07:00
Tom Fitzhenry
69e24a579c
nixos/module: add boot.initrd.unl0kr
2023-10-16 21:33:02 +11:00
Jörg Thalheim
b7057368c8
systemd-boot-builder: add missing fsync in atomic writes
...
write(2) and close(2) doesn't ensure the file content actually got synched, so let's also fsync before doing the rename
2023-10-10 14:49:51 +02:00
Jörg Thalheim
865a2cf8c1
Revert "nixos/systemd-boot: skip EFI update to 252"
...
This reverts commit 80665d606a
.
Parsing the package version broke our systemd-boot builder test.
i.e. it won't be able to parse systemd-boot efi binaries coming from
ubuntu
We no longer use the faulty systemd-boot version so this code should no
longer be needed.
2023-10-10 14:49:51 +02:00
Jörg Thalheim
b7fbd1ffd4
systemd-boot-builder: use regex prefix string
...
otherwise there are warnings for \.
2023-10-10 14:49:51 +02:00
Jörg Thalheim
5ee9fdf929
systemd-boot-builder: use new builtin typing style
2023-10-10 14:49:51 +02:00
Jörg Thalheim
e20a886f87
systemd-boot-builder: drop unused import
2023-10-10 14:49:51 +02:00
Jörg Thalheim
a17f41ed0b
systemd-boot-builder: replace mkdir_p function with stdlib equivalent
2023-10-10 14:49:51 +02:00
Jörg Thalheim
f4bf9702be
systemd-boot-builder: always do syncfs, even after a failure
2023-10-10 14:49:51 +02:00
Jörg Thalheim
dbac7467ad
systemd-boot-builder: drop semicolons
...
this is python, not C.
2023-10-10 14:49:51 +02:00
Jörg Thalheim
1f70361d08
systemd-boot-builder: resort imports according to isort
...
foo
2023-10-10 14:49:51 +02:00
Florian Klink
7239f0198e
Merge pull request #258920 from ElvishJerricco/systemd-stage-1-full-build
...
systemd-stage-1: Default to full systemd build.
2023-10-04 12:02:36 +03:00
Florian Klink
42f2e2dadd
Merge pull request #257510 from ign0tus/fix/wake-on-lan-policy
...
Fix: WakeOnLan policy
2023-10-04 11:36:16 +03:00
Will Fancher
710b96b191
systemd-stage-1: Default to full systemd build.
2023-10-04 04:21:35 -04:00
Florian Klink
d89aa11c89
Merge pull request #258345 from lf-/jade/wait-for-online
...
nixos/networkd: fix wait-online on networking.useDHCP default configuration
2023-10-04 10:58:14 +03:00
Will Fancher
37601de942
Merge pull request #237154 from ElvishJerricco/sd-s1-networkd-flush-with-keep-configuration
...
systemd stage 1 networking: Use KeepConfiguration
2023-10-03 23:37:03 -04:00
Jade Lovelace
28ab2b278d
nixos/networkd: make wait-online not time out
...
A further bug to our strange multi-user.target depending on
network-online.target issue is that systemd recently changed the
behaviour of systemd-networkd-wait-online to no longer consider the
absence of interfaces with RequiredForOnline to be sufficient to be
online: https://github.com/systemd/systemd/pull/27825
On the advice of the systemd developers
(https://github.com/systemd/systemd/issues/29388 ), this commit changes
the configuration of systemd-networkd-wait-online to pass --any by
default, and lets the default DHCP interfaces be RequiredForOnline
as they would be by default if the option is omitted.
It is plausible that systemd-networkd-wait-online may still fail if
there are no interfaces at all. However, that probably cannot be
avoided.
2023-10-02 14:47:21 -07:00
Ryan Lahfa
3c3ef90189
Merge pull request #242191 from tie/systemd-required-for-online-range
2023-09-30 01:16:21 +02:00
Janne Heß
5d7723dd5b
nixos/switch-to-configuration: Lock the switch
...
This prevents any concurrent switches from happening which is not an
issue I have seen people complaining about but it seems like a good
measure.
2023-09-29 19:46:10 +02:00
Adam Stephens
b1237da5b2
systemd: revert allow udev-trigger for lxd nested containers
2023-09-28 13:58:11 -04:00
ign0tus
237f7ba7d2
networkd: Allow combinations of WakeOnLan policies
...
To comply with the systemd.link WakeOnLan[^1] specification, the option
"off" and all other possible policy combinations must be allowed.
[^1]: https://www.freedesktop.org/software/systemd/man/systemd.link.html#WakeOnLan=
2023-09-28 17:04:35 +02:00
Mario Rodas
25b9f4d2b6
Merge pull request #255116 from adamcstephens/lxd/udev-container
...
systemd: allow udev-trigger to run on lxd containers with nesting
2023-09-28 02:17:27 -05:00
Ryan Lahfa
12eb1e5d28
Merge pull request #249412 from JTarasovic/jdt/systemd-networkd/ipv6-assign-prefix
2023-09-27 18:39:00 +02:00
Ryan Lahfa
cb403e56a6
Merge pull request #249386 from JTarasovic/jdt/systemd-networkd/dhcpv6config
2023-09-27 18:38:16 +02:00
github-actions[bot]
fc1f757bf6
Merge master into staging-next
2023-09-25 18:01:06 +00:00
Yureka
6500b4580c
Revert "nixos/boot/rasbperrypi: add support for boot.initrd.secret with uboot ( #240358 )" ( #257251 )
...
This reverts commit 94e939985b
.
2023-09-25 14:22:51 +02:00
github-actions[bot]
ab2ecc25c1
Merge master into staging-next
2023-09-23 18:00:59 +00:00
Janne Heß
cc55ef9d55
Merge pull request #254993 from helsinki-systems/feat/stc-mount-improvements
...
nixos/switch-to-configuration: Mount improvements and a lot more test cases
2023-09-23 17:03:13 +02:00
digital
94e939985b
nixos/boot/rasbperrypi: add support for boot.initrd.secret with uboot ( #240358 )
...
Co-authored-by: digital <didev@dinid.net>
2023-09-23 14:32:09 +02:00