From b9109ff710f25b42b9a4287b701a7bb1faa0224d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 25 Jul 2019 13:01:59 +0900 Subject: [PATCH] units: add initrd-network-generator.service --- units/initrd-network-generator.service.in | 17 +++++++++++++++++ units/meson.build | 1 + 2 files changed, 18 insertions(+) create mode 100644 units/initrd-network-generator.service.in 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', ''],