Skip to content

Commit e942d86

Browse files
johannbgharaldh
authored andcommitted
feat(systemd-network-management): introducing systemd-network-management module
Introducing the systemd-network-management meta module which will allow distribution users and vendors to easily include systemd + systemd's network management modules by simply include this module instead of systemd network modules individually. Obviously if the intent is to glue together somekind of network stack out of random existing modules such as NetworkManager and or Wicked, this meta module should not be enabled.
1 parent 4982e16 commit e942d86

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

dracut.spec

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
316316
%endif
317317
%{dracutlibdir}/modules.d/00bash
318318
%{dracutlibdir}/modules.d/00systemd
319+
%{dracutlibdir}/modules.d/00systemd-network-management
319320
%ifnarch s390 s390x
320321
%{dracutlibdir}/modules.d/00warpclock
321322
%endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
# Return 255 to only include the module, if another module requires it.
9+
return 255
10+
11+
}
12+
13+
# Module dependency requirements.
14+
depends() {
15+
16+
# This module has external dependency on other module(s).
17+
echo systemd systemd-hostnamed systemd-networkd systemd-resolved systemd-timedated systemd-timesyncd
18+
# Return 0 to include the dependent module(s) in the initramfs.
19+
return 0
20+
21+
}

0 commit comments

Comments
 (0)