]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: add initrd-network-generator.service
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Jul 2019 04:01:59 +0000 (13:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Jul 2019 07:46:55 +0000 (16:46 +0900)
units/initrd-network-generator.service.in [new file with mode: 0644]
units/meson.build

diff --git a/units/initrd-network-generator.service.in b/units/initrd-network-generator.service.in
new file mode 100644 (file)
index 0000000..f926196
--- /dev/null
@@ -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
index 10137691cf3c53e48122fb9fa990bba5cc706f94..72535b85eeb6dfcffe2a9220a61ac5d1bebc0f6e 100644 (file)
@@ -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',    ''],