fix fedora boot issue

This commit is contained in:
Sandwich 2024-04-17 06:02:32 +02:00
parent fe43bf6733
commit ec6ca49265
3 changed files with 27 additions and 6 deletions

View File

@ -32,7 +32,7 @@
with_items:
- dnf --releasever=40 --best --repo=fedora --repo=fedora-updates --installroot=/mnt --setopt=install_weak_deps=False groupinstall -y critical-path-base core
- arch-chroot /mnt dnf --releasever=40 --setopt=install_weak_deps=False install -y {{ role_packages.fedora | join(' ') }}
- arch-chroot /mnt dnf reinstall -y grub2-efi-x64 kernel
- arch-chroot /mnt dnf reinstall -y kernel-core
- name: Bootstrap RockyLinux 9
when: os | lower == 'rocky'

View File

@ -9,6 +9,7 @@ almalinux:
- grub2
- grub2-efi
- lrzsz
- lvm2
- nc
- nfs-utils
- nfsv4-client-utils
@ -133,17 +134,25 @@ debian12:
- wget
fedora:
- bind-utils
- btrfs-progs
- cloud-init
- dhcp-client
- efibootmgr
- glibc-langpack-en
- glibc-langpack-de
- grub2
- grub2-efi-x64-modules
- grub2-efi
- lrzsz
- lvm2
- nc
- nfs-utils
- nfsv4-client-utils
- open-vm-tools
- shim
- telnet
- vim-default-editor
- wget
- zstd
rhel8:
@ -151,8 +160,9 @@ rhel8:
- dhcp-client
- efibootmgr
- grub2
- grub2-efi-x64-modules
- grub2-efi
- lrzsz
- lvm2
- nfs-utils
- open-vm-tools
- shim
@ -164,8 +174,9 @@ rhel9:
- dhcp-client
- efibootmgr
- grub2
- grub2-efi-x64-modules
- grub2-efi
- lrzsz
- lvm2
- nfs-utils
- open-vm-tools
- shim
@ -182,6 +193,7 @@ rocky:
- grub2
- grub2-efi
- lrzsz
- lvm2
- nc
- nfs-utils
- nfsv4-client-utils

View File

@ -167,5 +167,14 @@
validate: /usr/sbin/visudo --check --file=%s
- name: Fix SELinux
when: os | lower in ['almalinux', 'fedora', 'rhel8', 'rhel9', 'rocky']
block:
- name: Relabel the filesystem
when: os | lower in ['almalinux', 'rhel8', 'rhel9', 'rocky']
command: touch /mnt/.autorelabel
- name: Disable SELinux
when: os | lower == "fedora"
lineinfile:
path: /mnt/etc/selinux/config
regexp: '^SELINUX='
line: 'SELINUX=permissive'