Add OS_RELEASE to /etc/os-release
This commit is contained in:
parent
8d5bc2f8f2
commit
e219ede7eb
4 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ system_bootloader_os-release:
|
|||
file.keyvalue:
|
||||
- name: /etc/os-release
|
||||
- key_values:
|
||||
VERSION_ID: '"Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }} | Kernel: {{ KERNEL_VERSION }}"'
|
||||
RELEASE_INFO: '"Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }} | Kernel: {{ KERNEL_VERSION }}"'
|
||||
- separator: '='
|
||||
- uncomment: '# '
|
||||
- key_ignore_case: False
|
||||
|
|
|
@ -9,7 +9,7 @@ system_candy_motd:
|
|||
- template: jinja
|
||||
- context:
|
||||
OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }}
|
||||
OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2') }}
|
||||
OS_RELEASE_INFO: {{ salt['cmd.shell']('grep -E ^RELEASE_INFO /etc/os-release | cut -d= -f2') }}
|
||||
OS_ISSUE_URL: {{ salt['cmd.shell']('grep -E ^BUG_REPORT_URL /etc/os-release | cut -d= -f2') }}
|
||||
- user: root
|
||||
- group: root
|
||||
|
|
|
@ -3,5 +3,6 @@ ID=noveriaos
|
|||
ID_LIKE=alpine
|
||||
VERSION_ID="{{ OS_VERSION }}"
|
||||
PRETTY_NAME="NoveriaOS {{ OS_VERSION }}"
|
||||
RELEASE_INFO="{{ RELEASE_INFO }}"
|
||||
HOME_URL="https://noveria.org"
|
||||
BUG_REPORT_URL="https://git.noveria.org/NoveriaOS/iso/issues"
|
|
@ -10,7 +10,7 @@
|
|||
╚═══════════════════════════════════════════════╝
|
||||
|
||||
OS: {{ OS_NAME }}
|
||||
Version: {{ OS_VERSION }}
|
||||
Version: {{ OS_RELEASE_INFO }}
|
||||
|
||||
Report issues on: {{ OS_ISSUE_URL }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue