forked from coreos/console-login-helper-messages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For the same reason as in coreos#39 (copying the phrasing below): With the `staged` file shared, there would be potential for two or more processes executing `motdgen` to write to it resulting in corrupted output, or the error in the `cat` command due to missing file reported in coreos#35 (comment). Currently, this is not a problem with motdgen, but could be if `motdgen` were invoked by something like the udev rules that invoke `issuegen`. Instead, write the intermediate output to a variable before writing to the final output file. This ensures only valid output is written to the issue file shown to the terminal. Additionally, perform code tidyups similar to those done for `issuegen` in coreos#40.
- Loading branch information
Robert Fairley
committed
May 18, 2020
1 parent
a75a523
commit a88708f
Showing
2 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
usr/lib/systemd/system/console-login-helper-messages-motdgen.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
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