File tree 2 files changed +48
-0
lines changed
modules.d/01systemd-sysext
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This file is part of dracut.
3
+ # SPDX-License-Identifier: GPL-2.0-or-later
4
+
5
+ # Prerequisite check(s) for module.
6
+ check () {
7
+
8
+ # If the binary(s) requirements are not fulfilled the module can't be installed.
9
+ require_binaries systemd-sysext || return 1
10
+
11
+ # Return 255 to only include the module, if another module requires it.
12
+ return 255
13
+
14
+ }
15
+
16
+ # Module dependency requirements.
17
+ depends () {
18
+
19
+ # This module has external dependency on other module(s).
20
+ echo systemd
21
+ # Return 0 to include the dependent module(s) in the initramfs.
22
+ return 0
23
+
24
+ }
25
+
26
+ # Install the required file(s) and directories for the module in the initramfs.
27
+ install () {
28
+
29
+ inst_multiple -o \
30
+ " /usr/lib/extensions/*" \
31
+ " /usr/lib/extension-release.d/extension-release.*" \
32
+ " $systemdsystemunitdir " /systemd-sysext.service \
33
+ " $systemdsystemunitdir /systemd-sysext.service.d/*.conf" \
34
+ systemd-sysext
35
+
36
+ # Enable systemd type unit(s)
37
+ $SYSTEMCTL -q --root " $initdir " enable systemd-sysext.service
38
+
39
+ # Install the hosts local user configurations if enabled.
40
+ if [[ $hostonly ]]; then
41
+ inst_multiple -H -o \
42
+ " /etc/extensions/*" \
43
+ " $systemdsystemconfdir " /systemd-sysext.service \
44
+ " $systemdsystemconfdir /systemd-sysext.service.d/*.conf"
45
+ fi
46
+
47
+ }
Original file line number Diff line number Diff line change @@ -334,6 +334,7 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
334
334
%{dracutlibdir }/modules.d/01systemd-repart
335
335
%{dracutlibdir }/modules.d/01systemd-resolved
336
336
%{dracutlibdir }/modules.d/01systemd-rfkill
337
+ %{dracutlibdir }/modules.d/01systemd-sysext
337
338
%{dracutlibdir }/modules.d/01systemd-sysctl
338
339
%{dracutlibdir }/modules.d/01systemd-sysusers
339
340
%{dracutlibdir }/modules.d/01systemd-timedated
You can’t perform that action at this time.
0 commit comments