Add /etc/issue

This commit is contained in:
LinuxSquare 2023-12-31 14:31:53 +01:00
parent 1fcb1fd13f
commit 5972218cc7
2 changed files with 14 additions and 0 deletions

View file

@ -65,3 +65,15 @@ system_bootloader_motd:
- require:
- system_bootloader_os-release
- system_bootloader_motd_dir
system_bootloader_issue:
file.managed:
- name: /etc/issue
- source: salt://{{ tpldir }}/files/bootloader_issue.jinja
- template: jinja
- context:
OS_NAME: {{ salt['cmd.shell']('echo NoveriaOS $(date "+%Y%m")') }}
OS_RELEASE_INFO: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }}
- user: root
- group: root
- mode: '0644'

View file

@ -0,0 +1,2 @@
Velkommen til {{ OS_NAME }}
Timestamp: {{ OS_RELEASE_INFO }} | Kernel \r