From 5972218cc70dd029125393e8c534ccd7812d73cc Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sun, 31 Dec 2023 14:31:53 +0100 Subject: [PATCH] Add /etc/issue --- system/bootloader.sls | 12 ++++++++++++ system/files/bootloader_issue.jinja | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 system/files/bootloader_issue.jinja diff --git a/system/bootloader.sls b/system/bootloader.sls index a6d5ca9..b257e12 100644 --- a/system/bootloader.sls +++ b/system/bootloader.sls @@ -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' diff --git a/system/files/bootloader_issue.jinja b/system/files/bootloader_issue.jinja new file mode 100644 index 0000000..418c9d0 --- /dev/null +++ b/system/files/bootloader_issue.jinja @@ -0,0 +1,2 @@ +Velkommen til {{ OS_NAME }} +Timestamp: {{ OS_RELEASE_INFO }} | Kernel \r