Fix os-release
This commit is contained in:
parent
c1d1403ea3
commit
5dfb28dfd8
3 changed files with 11 additions and 19 deletions
|
@ -26,14 +26,3 @@ system_base_apps_dir:
|
|||
- group: root
|
||||
- dir_mode: '0755'
|
||||
- file_mode: '0644'
|
||||
|
||||
system_base_os-release:
|
||||
file.managed:
|
||||
- name: /etc/os-release
|
||||
- source: salt://{{ tpldir }}/files/base_os-release.jinja
|
||||
- template: jinja
|
||||
- context:
|
||||
OS_VERSION: {{ salt['cmd.shell']('date "+%Y%m"') }}
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: '0644'
|
|
@ -28,12 +28,14 @@ system_bootloader_mkinitfs_conf:
|
|||
- system_base_pkgs
|
||||
- system_bootloader_pkgs
|
||||
|
||||
system_bootloader_os-release:
|
||||
file.keyvalue:
|
||||
system_base_os-release:
|
||||
file.managed:
|
||||
- name: /etc/os-release
|
||||
- key_values:
|
||||
RELEASE_INFO: '"Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }} | Kernel: {{ KERNEL_VERSION }}"'
|
||||
- separator: '='
|
||||
- uncomment: '# '
|
||||
- key_ignore_case: False
|
||||
- append_if_not_found: True
|
||||
- source: salt://{{ tpldir }}/files/base_os-release.jinja
|
||||
- template: jinja
|
||||
- context:
|
||||
OS_VERSION: {{ salt['cmd.shell']('date "+%Y%m"') }}
|
||||
OS_RELEASE_INFO: '"Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }} | Kernel: {{ KERNEL_VERSION }}"'
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: '0644'
|
||||
|
|
|
@ -3,5 +3,6 @@ ID=noveriaos
|
|||
ID_LIKE=alpine
|
||||
VERSION_ID="{{ OS_VERSION }}"
|
||||
PRETTY_NAME="NoveriaOS {{ OS_VERSION }}"
|
||||
RELEASE_INFO="{{ OS_RELEASE_INFO }}"
|
||||
HOME_URL="https://noveria.org"
|
||||
BUG_REPORT_URL="https://git.noveria.org/NoveriaOS/iso/issues"
|
Loading…
Reference in a new issue