ALT Linux Bugzilla
– Attachment 13385 Details for
Bug 46398
alterator-netinst не делает настроек для работы PXE в EFI-режиме
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч для добавления настроек Grub2 для загрузку PXE для EFI
alterator-netinst-efi.patch (text/plain), 2.32 KB, created by
Ярослав Белых
on 2023-06-06 11:34:26 MSK
(
hide
)
Description:
Патч для добавления настроек Grub2 для загрузку PXE для EFI
Filename:
MIME Type:
Creator:
Ярослав Белых
Created:
2023-06-06 11:34:26 MSK
Size:
2.32 KB
patch
obsolete
>diff -ur a/alterator-netinst-1.9.1/bin/alterator-netinst b/alterator-netinst-1.9.1/bin/alterator-netinst >--- a/alterator-netinst-1.9.1/bin/alterator-netinst 2021-06-09 02:49:03.000000000 +0700 >+++ b/alterator-netinst-1.9.1/bin/alterator-netinst 2023-06-06 15:05:19.799276394 +0700 >@@ -125,6 +125,7 @@ > local lname="$(show_labels | sed -n "s/^$1[[:space:]]\+\(.*\)/\1/p")" > test -n "$lname" || lname="$(show_labels | sed -n "s/^1[[:space:]]\+\(.*\)/\1/p")" > test -n "$lname" && sed -i "s/^\(default\)[[:space:]]\+.*/\1 $lname/" "$TFTPDIR/pxelinux.cfg/default" >+ test -n "$lname" && sed -i "s/\(set default=\).*/\1$lname/" "$TFTPDIR/grub.cfg" > } > > ##### downloading images >@@ -299,6 +300,9 @@ > rm -f "$CURR" ||: > rm -f "$TFTPDIR/pxelinux.0" ||: > rm -rf "$TFTPDIR/syslinux" ||: >+ rm -f "$TFTPDIR/grub.cfg" ||: >+ rm -f "$TFTPDIR/grubx64.efi" ||: >+ rm -f "$TFTPDIR/shimx64.efi" ||: > sed -i "\%^$CURR%d" /etc/fstab > > [ "$num" != "0" ] || return 0 >@@ -328,7 +332,12 @@ > fi > mkdir -p "$TFTPDIR/pxelinux.cfg" || > fatal "Error: can't create $TFTPDIR/pxelinux.cfg" >- >+ if [ -f "$MNT/boot/grub/grub.cfg" ]; then >+ cp -f "$MNT/boot/grub/grub.cfg" "$TFTPDIR/grub.cfg" || >+ fatal "Error: can't copy $MNT/grub.cfg to $TFTPDIR" >+ cp "/usr/lib64/efi/shimx64.efi" "$TFTPDIR" >+ cp "/usr/lib64/efi/grubx64.efi" "$TFTPDIR" >+ fi > local tz="$(sed -n -e 's/^ZONE=\([^[:space:]]\+\)/\1/p' /etc/sysconfig/clock 2>/dev/null)" > local lang="$(sed -n -e 's/^LANG=\([^[:space:]\.]\+\).*/\1/p' /etc/sysconfig/i18n 2>/dev/null)" > local vnc="$(cat $DATADIR/vncparams 2>/dev/null)" >@@ -357,7 +366,15 @@ > }"\ > "$TFTPDIR/syslinux/isolinux.cfg" \ > > "$TFTPDIR/pxelinux.cfg/default" >- >+ # Setting up grub.cfg >+ sed -e " >+ s%\bset timeout\+\([^[:space:]]\+\)%set timeout=0% >+ s%\(initrd\$linux_suffix\)[[:space:]]\+\([^[:space:]]\+\)%\1 syslinux\2% >+ /^[[:space:]]*linux\$linux_suffix/{ >+ s%\(linux\$linux_suffix\)[[:space:]]\+\([^[:space:]]\+\)%\1 syslinux\2% >+ s%automatic=[^[:space:]]\+%% >+ s%\$% automatic=method:nfs,network:dhcp${tz:+ tz=$tz} ${lang:+ lang=$lang} ${krb5:+ krb5} $vnc% >+ }" "$TFTPDIR/syslinux/boot/grub/grub.cfg" > "$TFTPDIR/grub.cfg" > # Setting up DHCP using alterator-dhcp > if [ -f /usr/bin/alterator-dhcp-functions ];then > . /usr/bin/alterator-dhcp-functions
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46398
: 13385 |
13386