-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use /run/issue.d for generated issue snippets #7
Comments
has the upstream source changed any? |
It seems there is now support for We can have |
WDYT about go ahead and modify the sources now and do a new release and we can just build it for f32+ ? |
the fedora cloud base image uses |
SGTM to make the change now! I will start on changing the source, and should have a PR today or tomorrow. |
agetty
or linux-pam
support a list of issue directoriesSplit out `if_snippets_gen` from the `issuegen` script. This makes the udev rule `90-console-login-helper-messages-if_snippets_gen.rules` responsible only for writing snippets with information about network interfaces to the runtime issue snippets directory (`/run/console-login-helper-messages/issue.d`) read by `issuegen` to generate the final `/run/console-login-helper-messages/40_console-login-helper-messages.issue` file read by the serial terminal (agetty). This is beneficial as it helps avoid situations where multiple invocations of `issuegen` are executed concurrently (leading to bugs like coreos#35). This is also a first step towards making the shown information more configurable (coreos#15). Also preparation for coreos#7, which will involve making the `issuegen` script more configurable by accepting a `--legacy` flag (coreos#7 (comment)), by reducing the number places in the code that the `issuegen` function is called (so less downstream patching to pass in a `--legacy` flag required). Add `console-login-helper-messages.path`, so that `issuegen` is run whenever snippets are written to `/run/console-login-helper-messages/issue.d`. This should be the main way of triggering a run of `issuegen` (first trigger the path, which starts the service, which will run `issuegen`). The only other time the `issuegen` service is invoked is on boot (if the unit is enabled). Note, enablement of the path unit is required upon installation.
Split out `if_snippets_gen` from the `issuegen` script. This makes the udev rule `90-console-login-helper-messages-if_snippets_gen.rules` responsible only for writing snippets with information about network interfaces to the runtime issue snippets directory (`/run/console-login-helper-messages/issue.d`) read by `issuegen` to generate the final `/run/console-login-helper-messages/40_console-login-helper-messages.issue` file read by the serial terminal (agetty). This is beneficial as it helps avoid situations where multiple invocations of `issuegen` are executed concurrently (leading to bugs like coreos#35). This is also a first step towards making the shown information more configurable (coreos#15). Preparation also for coreos#7, reducing the number of places in the code that `issuegen` is called directly, reducing potential downstream patching needed to pass in a `--legacy` option to the script (coreos#7 (comment)). Add `console-login-helper-messages.path`, so that `issuegen` is run whenever snippets are written to `/run/console-login-helper-messages/issue.d`. This should be the main way of triggering a run of `issuegen` (first trigger the path, which starts the service, which will run `issuegen`). The only other time the `issuegen` service is invoked is on boot (if the unit is enabled). Note, enablement of the path unit is required upon installation.
With the updated util-linux, the current logic is that It may be feasible to modify agetty with an option to override this behavior and display multiple issue paths - opened an issue for this: util-linux/util-linux#1041 |
Option in agetty to override this behavior and display multiple issue paths is now in util-linux release 2.36 |
Currently, the default in Fedora is to have
agetty
search/etc/issue.d/
for issue files to display before login at the serial console.issuegen
generates an issue at runtime, and places the generated file in/run/issue.d/
. To haveagetty
display this, a symlink from/etc/issue.d/
to/run/issue.d/
is needed.It would be preferable not to need a symlink, and instead have
agetty
search/run/issue.d/
by default (in addition to/etc/issue.d/
. This requires changing upstream code that will go into Fedora. SELinux policy changes may be needed as well to allowagetty
to read other directories (related).The change would implement near equivalent functionality of a similar change in pam_motd.
Alternatively, the
pam_issue
module could be modified to support a list of issue paths, and have the Fedora default way of displayingissue
files changed fromagetty
to a service that usespam_issue
. But changing the Fedora default is a lot more significant than the first option, and unlikely to be adopted just for theconsole-login-helper-messages
package.The text was updated successfully, but these errors were encountered: