Fix OS_ISSUE_URL
This commit is contained in:
parent
141d7d9043
commit
ee90481e74
1 changed files with 11 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
|||
- efibootmgr
|
||||
state: present
|
||||
- name: Get current timestamp
|
||||
shell: |
|
||||
shell: |
|
||||
CURRENT_SUBVOLUME=$(LC_ALL=C btrfs sub show / | LC_ALL=C grep Name: | tr -d '[:space:]'); TIMESTAMP_FORMAT='[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}_[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{2}'; echo "$CURRENT_SUBVOLUME" | grep -Eo "$TIMESTAMP_FORMAT"
|
||||
register: CURRENT_SUBVOLUME_TIMESTAMP
|
||||
run_once: true
|
||||
|
@ -29,18 +29,18 @@
|
|||
- name: mkinitfs config
|
||||
lineinfile:
|
||||
path: "/etc/mkinitfs/mkinitfs.conf"
|
||||
regexp: '^features.?=.?'
|
||||
regexp: "^features.?=.?"
|
||||
line: features="ata base btrfs keymap kms mmc nvme scsi usb virtio"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
- name: os-release file
|
||||
template:
|
||||
src: files/bootloader_os-release.j2
|
||||
dest: "/etc/os-release"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
vars:
|
||||
OS_VERSION: "2406"
|
||||
OS_RELEASE_INFO: '"Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN.stdout }} | Kernel: {{ KERNEL_VERSION.stdout }}"'
|
||||
|
@ -49,7 +49,7 @@
|
|||
name: /etc/motd.d
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
mode: "0755"
|
||||
state: directory
|
||||
- name: Motd
|
||||
template:
|
||||
|
@ -57,18 +57,18 @@
|
|||
dest: /etc/motd.d/00_noveria.motd
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
vars:
|
||||
OS_NAME: 'Novos 2406'
|
||||
OS_RELEASE_INFO: 'Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN.stdout }} | Kernel: {{ KERNEL_VERSION.stdout }}'
|
||||
OS_ISSUE_URL: 'https://git.noveria.org/NoveriaOS/ISO/issues'
|
||||
OS_NAME: "Novos 2406"
|
||||
OS_RELEASE_INFO: "Timestamp: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN.stdout }} | Kernel: {{ KERNEL_VERSION.stdout }}"
|
||||
OS_ISSUE_URL: "https://git.noveria.org/Novos/ISO/issues"
|
||||
- name: Issue
|
||||
template:
|
||||
src: files/bootloader_issue.j2
|
||||
dest: /etc/issue
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
vars:
|
||||
OS_NAME: 'Novos 2406'
|
||||
OS_NAME: "Novos 2406"
|
||||
OS_RELEASE_INFO: "{{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN.stdout }}"
|
||||
|
|
Loading…
Reference in a new issue