mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
Fix tps-rpmtest failing due /boot/grub2/grubenv attributes mismatch
The /boot/grub2/grubenv file is not installed by the grub2 packages but is either a symbolic link created on %install or a regular file created by Anaconda during installation. This is causing the tps-rpmtest to fail in some architectures since the file attributes don't match what's expected by the package. Because is a special file, make verification to ignore the size, mode, checksum and mtime attributes. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
96eeab8abd
commit
ec73df1b6e
2 changed files with 2 additions and 2 deletions
|
@ -604,7 +604,7 @@ touch ${RPM_BUILD_ROOT}/boot/%{name}/grub.cfg \
|
|||
%dir %attr(0700,root,root)%{efi_esp_dir}/fonts \
|
||||
%dir %attr(0700,root,root)/boot/loader/entries \
|
||||
%ghost %config(noreplace) %attr(0700,root,root)%{efi_esp_dir}/grub.cfg \
|
||||
%config(noreplace) /boot/grub2/grubenv \
|
||||
%config(noreplace) %verify(not size mode md5 mtime) /boot/grub2/grubenv \
|
||||
%ghost %config(noreplace) %attr(0700,root,root)%{efi_esp_dir}/grubenv \
|
||||
%{expand:%if 0%{?without_efi_modules} \
|
||||
%exclude %{_libdir}/grub/%{6} \
|
||||
|
|
|
@ -358,7 +358,7 @@ rm -r /boot/grub2.tmp/ || :
|
|||
%exclude /boot/grub2/*
|
||||
%dir %attr(0700,root,root) %{efi_esp_dir}
|
||||
%exclude %{efi_esp_dir}/*
|
||||
%ghost %config(noreplace) /boot/grub2/grubenv
|
||||
%ghost %config(noreplace) %verify(not size mode md5 mtime) /boot/grub2/grubenv
|
||||
%license COPYING
|
||||
%doc THANKS
|
||||
%doc docs/grub.html
|
||||
|
|
Loading…
Reference in a new issue