mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-09-30 01:37:21 +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
(cherry picked from commit ba950669f1
)
This commit is contained in:
parent
007c54025d
commit
e7742ffc33
@ -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