units: add initrd-network-generator.service

This commit is contained in:
Yu Watanabe 2019-07-25 13:01:59 +09:00
parent 0a9219986e
commit b9109ff710
2 changed files with 18 additions and 0 deletions

View File

@ -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

View 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', ''],