mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-09 23:50:07 +00:00
cloud: fix errors that happen on UEFI systems
We are seeing an error on aarch64 cloud image creation because of the vfat filesystem and the fixfiles command failing: + /usr/sbin/fixfiles -R -a restore /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/fonts/unicode.pf2: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/gcdaa64.efi: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/grub.cfg: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/grubaa64.efi: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/grubenv: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/BOOT/BOOTAA64.EFI: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/BOOT/fallback.efi: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/BOOT.CSV: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/MokManager.efi: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/shim-fedora.efi: Operation not supported /sbin/restorecon: Could not set context for /boot/efi/EFI/fedora/shim.efi: Operation not supported
This commit is contained in:
parent
6bfa0c57b3
commit
ba950669f1
@ -232,7 +232,9 @@ rm -f /var/lib/rpm/__db*
|
|||||||
echo "Fixing SELinux contexts."
|
echo "Fixing SELinux contexts."
|
||||||
touch /var/log/cron
|
touch /var/log/cron
|
||||||
touch /var/log/boot.log
|
touch /var/log/boot.log
|
||||||
/usr/sbin/fixfiles -R -a restore
|
# ignore return code because UEFI systems with vfat filesystems
|
||||||
|
# that don't support selinux will give us errors
|
||||||
|
/usr/sbin/fixfiles -R -a restore || true
|
||||||
|
|
||||||
echo "Zeroing out empty space."
|
echo "Zeroing out empty space."
|
||||||
# This forces the filesystem to reclaim space from deleted files
|
# This forces the filesystem to reclaim space from deleted files
|
||||||
|
Loading…
Reference in New Issue
Block a user