TSG-15768 在OS开机、关机过程中显示TSG的Logo
This commit is contained in:
@@ -172,6 +172,7 @@
|
||||
- {role: OFED, tags: OFED}
|
||||
- {role: sosreport, tags: sosreport}
|
||||
- {role: nm-config, tags: nm-config}
|
||||
- {role: tsg-os-logo, tags: tsg-os-logo}
|
||||
|
||||
- hosts: TSG-X-NXR620G40-R01-P0906-init
|
||||
remote_user: root
|
||||
|
||||
BIN
ansible/roles/tsg-os-logo/files/tsg-os-plymouth-theme.tar.gz
Executable file
BIN
ansible/roles/tsg-os-logo/files/tsg-os-plymouth-theme.tar.gz
Executable file
Binary file not shown.
9
ansible/roles/tsg-os-logo/files/uname
Executable file
9
ansible/roles/tsg-os-logo/files/uname
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" == "-r" ]
|
||||
then
|
||||
echo KERNEL_VERSION.x86_64
|
||||
else
|
||||
/usr/bin/uname-backup $1
|
||||
fi
|
||||
exit 0
|
||||
43
ansible/roles/tsg-os-logo/tasks/main.yml
Normal file
43
ansible/roles/tsg-os-logo/tasks/main.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
- name: "copy tsg-os-plymouth-theme.tar.gz to /tmp/tsg-os-logo/"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/"
|
||||
dest: "/tmp/tsg-os-logo/"
|
||||
|
||||
- name: "install the mock uname tools"
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode }}"
|
||||
remote_src: yes
|
||||
with_items:
|
||||
- { src: "/usr/bin/uname" , dest: "/usr/bin/uname-backup" , mode: "0755" }
|
||||
- { src: "/tmp/mft/uname" , dest: "/usr/bin/uname" , mode: "0755" }
|
||||
|
||||
- name: "change kernel version for uname"
|
||||
shell: sed -i -e 's/KERNEL_VERSION/5.17.15-1.el8/' /usr/bin/uname
|
||||
|
||||
- name: "unarchive the tsg-os-plymouth-theme.tar.gz to /usr/share/plymouth/themes/"
|
||||
unarchive:
|
||||
src: "/tmp/tsg-os-logo/tsg-os-plymouth-theme.tar.gz"
|
||||
dest: "/usr/share/plymouth/themes/"
|
||||
remote_src: yes
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
creates: "/usr/share/plymouth/themes/fedora-plymouth/"
|
||||
|
||||
- name: "install the plymouth-plugin-script"
|
||||
yum:
|
||||
name: plymouth-plugin-script
|
||||
state: present
|
||||
|
||||
- name: "set the theme as default"
|
||||
shell: "plymouth-set-default-theme -R fedora-plymouth"
|
||||
|
||||
- name: "uninstall the mocked uname tools"
|
||||
copy:
|
||||
src: "/usr/bin/uname-backup"
|
||||
dest: "/usr/bin/uname"
|
||||
mode: "0755"
|
||||
remote_src: yes
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
PROFILE_ID := TSG-X-NXR620G40-R01-P0906
|
||||
SUPPORTED_MACHINE_ID := TSG-X-NXR620G40-R01-P0906
|
||||
KERNEL_ARGS := crashkernel=512M default_hugepagesz=1G intel_iommu=on iommu=pt mitigations=off psi=1 selinux=0
|
||||
KERNEL_ARGS := crashkernel=512M default_hugepagesz=1G intel_iommu=on iommu=pt mitigations=off psi=1 selinux=0 quiet splash
|
||||
GRUB_SERIAL_COMMAND :=
|
||||
SIZE_PART_SYSROOT := 16384M
|
||||
SIZE_PART_UPDATE := 16384M
|
||||
|
||||
Reference in New Issue
Block a user