-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from ader1990/fix_kmod_static_nodes
Added flatcar systemd-tmpfiles-setup-dev-early.service
- Loading branch information
Showing
4 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# called by dracut | ||
depends() { | ||
echo systemd-networkd | ||
} | ||
|
||
# called by dracut | ||
install() { | ||
inst_simple "$moddir/systemd-tmpfiles-setup-dev-early.service" \ | ||
"$systemdsystemunitdir/systemd-tmpfiles-setup-dev-early.service" | ||
} |
24 changes: 24 additions & 0 deletions
24
dracut/11tmpfiles-early/systemd-tmpfiles-setup-dev-early.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
# | ||
# 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=Create Static Device Nodes in /dev gracefully | ||
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) | ||
|
||
DefaultDependencies=no | ||
Before=sysinit.target local-fs-pre.target systemd-udevd.service | ||
Wants=local-fs-pre.target | ||
Conflicts=shutdown.target initrd-switch-root.target | ||
Before=shutdown.target initrd-switch-root.target | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=systemd-tmpfiles --prefix=/dev --create --boot | ||
SuccessExitStatus=DATAERR CANTCREAT |