]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: rework growfs units to be just a regular unit that is instantiated
authorLennart Poettering <lennart@poettering.net>
Sun, 16 Oct 2022 20:45:17 +0000 (22:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jan 2023 08:42:16 +0000 (09:42 +0100)
commit50072ccf1bfee8a53563a083a3a52b26f0d5678f
tree0ec049d916bd7e40dad71727d2bc0d6bd8b0e339
parent0ba07f907721941f611eaca9521937c467bdfff2
units: rework growfs units to be just a regular unit that is instantiated

The systemd-growfs@.service units are currently written in full for each
file system to grow. Which is kinda pointless given that (besides an
optional ordering dep) they contain always the same definition. Let's
fix that and add a static template for this logic, that the generator
simply instantiates (and adds an ordering dep for).

This mimics how systemd-fsck@.service is handled. Similar to the wait
that for root fs there's a special instance systemd-fsck-root.service
we also add a special instance systemd-growfs-root.service for the root
fs, since it has slightly different deps.

Fixes: #20788
See: #10014
src/basic/special.h
src/shared/generator.c
units/meson.build
units/systemd-growfs-root.service.in [new file with mode: 0644]
units/systemd-growfs@.service.in [new file with mode: 0644]