Do not remove boot loader configuration for other boot loaders
This commit is contained in:
parent
dd6e48876e
commit
30b139ceba
@ -16,8 +16,8 @@ KERNEL_DIR="${KERNEL_IMAGE%/*}"
|
|||||||
|
|
||||||
MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
|
MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
|
||||||
|
|
||||||
# Remove it, since for grub2 the images are always installed in /boot
|
# If ${BOOT_DIR_ABS} exists, some other boot loader is active.
|
||||||
rm -rf "${BOOT_DIR_ABS%/*}"
|
[[ -d "${BOOT_DIR_ABS}" ]] && exit 0
|
||||||
|
|
||||||
BLS_DIR="/boot/loader/entries"
|
BLS_DIR="/boot/loader/entries"
|
||||||
|
|
||||||
|
@ -215,8 +215,6 @@ install -d -m 0755 %{buildroot}%{_prefix}/lib/kernel/install.d/
|
|||||||
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE9}
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE9}
|
||||||
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE13}
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE13}
|
||||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
|
||||||
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/20-grubby.install
|
|
||||||
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/90-loaderentry.install
|
|
||||||
# Install systemd user service to set the boot_success flag
|
# Install systemd user service to set the boot_success flag
|
||||||
install -D -m 0755 -t %{buildroot}%{_userunitdir} \
|
install -D -m 0755 -t %{buildroot}%{_userunitdir} \
|
||||||
docs/grub-boot-success.{timer,service}
|
docs/grub-boot-success.{timer,service}
|
||||||
@ -317,8 +315,6 @@ rm -r /boot/grub2.tmp/ || :
|
|||||||
%exclude %{_datarootdir}/grub/themes/*
|
%exclude %{_datarootdir}/grub/themes/*
|
||||||
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
|
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
|
||||||
%{_prefix}/lib/kernel/install.d/20-grub.install
|
%{_prefix}/lib/kernel/install.d/20-grub.install
|
||||||
%{_sysconfdir}/kernel/install.d/20-grubby.install
|
|
||||||
%{_sysconfdir}/kernel/install.d/90-loaderentry.install
|
|
||||||
%{_prefix}/lib/kernel/install.d/99-grub-mkconfig.install
|
%{_prefix}/lib/kernel/install.d/99-grub-mkconfig.install
|
||||||
%dir %{_datarootdir}/grub
|
%dir %{_datarootdir}/grub
|
||||||
%exclude %{_datarootdir}/grub/*
|
%exclude %{_datarootdir}/grub/*
|
||||||
|
Loading…
Reference in New Issue
Block a user