kernel-install: fix initramfs copying scripts
Fix current EFI boot dir discovery script.
Also, adjust scripts order:
50-dracut generates initramfs in /boot/(efi/)?/$MACHINE_ID/.../initrd
80-grub2 copies it to /boot/initramfs-....img
90-xen-efi copies it to /boot/efi/EFI/qubes/initramfs-....img
Make the above order explicit, rather than relying on xen sorted later
than grub2.
QubesOS/qubes-issues#3234
(cherry picked from commit 9eefe23f4c
)
This commit is contained in:
parent
cc8bffb664
commit
ce2193d85b
@ -155,7 +155,7 @@ install -d $RPM_BUILD_ROOT/etc/udev/rules.d
|
||||
install -m 644 system-config/00-qubes-ignore-devices.rules $RPM_BUILD_ROOT/etc/udev/rules.d/
|
||||
install -m 644 system-config/60-persistent-storage.rules $RPM_BUILD_ROOT/etc/udev/rules.d/
|
||||
install -m 644 -D system-config/disable-lesspipe.sh $RPM_BUILD_ROOT/etc/profile.d/zz-disable-lesspipe.sh
|
||||
install -m 755 -D system-config/kernel-grub2.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/90-grub2.install
|
||||
install -m 755 -D system-config/kernel-grub2.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/80-grub2.install
|
||||
install -m 755 -D system-config/kernel-xen-efi.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/90-xen-efi.install
|
||||
install -m 755 -D system-config/kernel-remove-bls.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/99-remove-bls.install
|
||||
install -m 644 -D system-config/75-qubes-dom0.preset \
|
||||
@ -293,7 +293,7 @@ chmod -x /etc/grub.d/10_linux
|
||||
%{_mandir}/man1/qubes-*.1*
|
||||
|
||||
%files kernel-install
|
||||
/usr/lib/kernel/install.d/90-grub2.install
|
||||
/usr/lib/kernel/install.d/80-grub2.install
|
||||
/usr/lib/kernel/install.d/90-xen-efi.install
|
||||
/usr/lib/kernel/install.d/99-remove-bls.install
|
||||
|
||||
|
@ -9,7 +9,7 @@ ESP_MOUNTPOINT=/boot/efi
|
||||
|
||||
EFI_DIR=$(efibootmgr -v 2>/dev/null | awk '
|
||||
/^BootCurrent:/ { current=$2; }
|
||||
/^Boot....\* / {
|
||||
/^Boot....\* .*xen\.efi/ {
|
||||
if ("Boot" current "*" == $1) {
|
||||
sub(".*File\\(", "");
|
||||
sub("\\\\xen.efi\\).*", "");
|
||||
|
Loading…
Reference in New Issue
Block a user