fix grubenv once more...
This commit is contained in:
parent
331d9e4d84
commit
963a16ff09
@ -395,9 +395,6 @@ install -m 755 %{2} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{2} \
|
|||||||
install -m 755 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3} \
|
install -m 755 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3} \
|
||||||
install -D -m 644 unicode.pf2 \\\
|
install -D -m 644 unicode.pf2 \\\
|
||||||
$RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/fonts/unicode.pf2\
|
$RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/fonts/unicode.pf2\
|
||||||
ln -sf ../efi/EFI/%{efidir}/grubenv \\\
|
|
||||||
$RPM_BUILD_ROOT/boot/grub2/grubenv \
|
|
||||||
./grub-editenv ${RPM_BUILD_ROOT}/boot/grub2/grubenv create \
|
|
||||||
cd .. \
|
cd .. \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
@ -412,7 +409,6 @@ if [ -f $RPM_BUILD_ROOT%{_infodir}/grub-dev.info ]; then \
|
|||||||
fi \
|
fi \
|
||||||
ln -s ../boot/%{name}/grub.cfg \\\
|
ln -s ../boot/%{name}/grub.cfg \\\
|
||||||
${RPM_BUILD_ROOT}%{_sysconfdir}/grub2.cfg \
|
${RPM_BUILD_ROOT}%{_sysconfdir}/grub2.cfg \
|
||||||
./grub-editenv ${RPM_BUILD_ROOT}/boot/grub2/grubenv create \
|
|
||||||
cd .. \
|
cd .. \
|
||||||
if [ -f $RPM_BUILD_ROOT/%{_libdir}/grub/%{1}/grub2.chrp ]; then \
|
if [ -f $RPM_BUILD_ROOT/%{_libdir}/grub/%{1}/grub2.chrp ]; then \
|
||||||
mv $RPM_BUILD_ROOT/%{_libdir}/grub/%{1}/grub2.chrp \\\
|
mv $RPM_BUILD_ROOT/%{_libdir}/grub/%{1}/grub2.chrp \\\
|
||||||
@ -439,6 +435,8 @@ install -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig \
|
|||||||
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/default/grub \
|
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/default/grub \
|
||||||
ln -sf ../default/grub \\\
|
ln -sf ../default/grub \\\
|
||||||
${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub \
|
${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub \
|
||||||
|
ln -sf ../efi/EFI/%{efidir}/grubenv \\\
|
||||||
|
$RPM_BUILD_ROOT/boot/grub2/grubenv \
|
||||||
touch ${RPM_BUILD_ROOT}/boot/%{name}/grub.cfg \
|
touch ${RPM_BUILD_ROOT}/boot/%{name}/grub.cfg \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
%if 0%{with_legacy_arch}
|
%if 0%{with_legacy_arch}
|
||||||
%{expand:%do_legacy_install %%{grublegacyarch} %%{alt_grub_target_name}}
|
%{expand:%do_legacy_install %%{grublegacyarch} %%{alt_grub_target_name}}
|
||||||
%endif
|
%endif
|
||||||
|
${RPM_BUILD_ROOT}/%{_bindir}/%{name}-editenv ${RPM_BUILD_ROOT}/boot/efi/EFI/%{efidir}/grubenv create
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
|
||||||
%find_lang grub
|
%find_lang grub
|
||||||
|
Loading…
Reference in New Issue
Block a user