summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
Diffstat (limited to 'units')
-rw-r--r--units/initrd-network-generator.service.in17
-rw-r--r--units/meson.build1
2 files changed, 18 insertions, 0 deletions
diff --git a/units/initrd-network-generator.service.in b/units/initrd-network-generator.service.in
new file mode 100644
index 0000000000..f9261961b7
--- /dev/null
+++ b/units/initrd-network-generator.service.in
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Generate network units from Kernel command line
+DefaultDependencies=no
+Before=network-pre.target initrd-root-device.target initrd-root-fs.target initrd.target
+
+[Service]
+Type=oneshot
+ExecStart=@rootlibexecdir@/systemd-network-generator
diff --git a/units/meson.build b/units/meson.build
index 10137691cf..72535b85ee 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -119,6 +119,7 @@ in_units = [
['debug-shell.service', ''],
['emergency.service', ''],
['initrd-cleanup.service', ''],
+ ['initrd-network-generator.service', 'ENABLE_NETWORKD'],
['initrd-parse-etc.service', ''],
['initrd-switch-root.service', ''],
['initrd-udevadm-cleanup-db.service', ''],