Skip to content

Commit 21536eb

Browse files
committed
preset-global.service: Fix conditions
Also condition on /etc being writable.
1 parent ca3d37d commit 21536eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkosi.extra/usr/lib/systemd/system/preset-global.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
[Unit]
44
Before=user.slice
5+
ConditionFirstBoot=yes
6+
ConditionPathIsReadWrite=/etc
57

68
[Service]
79
Type=oneshot
810
RemainAfterExit=yes
9-
ConditionFirstBoot=yes
1011
ExecStart=systemctl preset-all --global

0 commit comments

Comments
 (0)