From: Leonid Krivoshein <klark.devel@gmail.com>
To: Sergey Bolshakov <sbolshakov@altlinux.ru>
Cc: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] mkimage-profiles 1.4.10-alt1
Date: Tue, 8 Jun 2021 22:24:49 +0300
Message-ID: <c2d08685-879c-b5e1-2cb5-6c3d5ff402a0@gmail.com> (raw)
In-Reply-To: <m3zgw06ujd.fsf@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]
08.06.2021 22:11, Sergey Bolshakov пишет:
> [...]
> На правах мимокрокодила --
> legacy pxe можно попросить грузить undionly из ipxe и затем уже им
> грузить что угодно всеми поддерживаемыми ipxe вариантами, вроде http или iscsi.
> Доделка сводится к написанию соответствующего конфига для dhcpd.
"Прыжок" из PXE в iPXE, который мы тут несколько раз уже обсуждали? Типа
того, что в прилагаемом конфиге?
Он обеспечит противоположный профит: старые машины с PXE-only смогут
загружаться чуть дольше, но уже по iPXE, остаётся лишь переучить
alterator-netinst работать НЕ ТОЛЬКО с PXE. И я считаю, что
недостаточно. Нужно обязательно удалить alterator-dhcp и
alterator-netinst, иначе всё, что админ "наадминил врукопашную" будет
снесено при первой же перезагрузке, даже если не запускать интерфейс
Альтератора. Именно поэтому сетевая загрузка на любой вкус делается с
пол пинка на конфигах и без alterator-netinst.
В общем, я хочу всё это переделать, причём по уму. А начать сегодня мне
было предложено с того, что задокументировать, как это делается
правильно руками. Вот конфиг, который предлагается покритиковать и
выправить в плане решаемой задачи.
--
Best regards,
Leonid Krivoshein.
[-- Attachment #2: dhcpd.conf --]
[-- Type: text/plain, Size: 1354 bytes --]
# Auto-generated by post-install script
# See dhcpd.conf(5) for further configuration
authoritative;
ddns-update-style none;
ddns-domainname "test.alt";
option space altlinux;
option altlinux.keydata code 2 = string;
vendor-option-space altlinux;
option arch code 93 = unsigned integer 16;
option space ipxe;
option ipxe.no-pxedhcp code 176 = unsigned integer 8;
subnet 192.168.15.0 netmask 255.255.255.0 {
option nis-domain "test.alt";
option domain-name "test.alt";
option broadcast-address 192.168.15.255;
option subnet-mask 255.255.255.0;
default-lease-time 1800;
max-lease-time 3600;
option ipxe.no-pxedhcp 1;
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.15.1/boot/script.ipxe";
} elsif option arch = encode-int(16, 16) {
option vendor-class-identifier "HTTPClient";
filename "http://192.168.15.1/boot/ipxe-x86_64.efi";
} elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
next-server 192.168.15.1;
if option arch = 00:06 { # EFI IA32
filename "ipxe-i386.efi";
} elsif option arch = 00:07 { # EFI Byte Code
filename "ipxe-x86_64.efi";
} elsif option arch = 00:09 { # EFI x86-64
filename "ipxe-x86_64.efi";
} elsif option arch = 00:00 { # Legacy BIOS
filename "undionly.kpxe";
}
}
pool {
range 192.168.15.50 192.168.15.250;
}
}
next prev parent reply other threads:[~2021-06-08 19:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 17:42 Антон Мидюков
2021-06-08 13:06 ` Alexey Shabalin
2021-06-08 15:17 ` Антон Мидюков
2021-06-08 16:54 ` Leonid Krivoshein
2021-06-08 19:11 ` Sergey Bolshakov
2021-06-08 19:24 ` Leonid Krivoshein [this message]
2021-06-08 19:54 ` Sergey Bolshakov
2021-06-08 20:43 ` Leonid Krivoshein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c2d08685-879c-b5e1-2cb5-6c3d5ff402a0@gmail.com \
--to=klark.devel@gmail.com \
--cc=devel-distro@lists.altlinux.org \
--cc=sbolshakov@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Distributions development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
public-inbox-index devel-distro
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-distro
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git