Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pkg/eve/runme.sh for installer net to match what was one in makenet.sh #4320

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pkg/eve/runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,26 +165,26 @@ do_installer_iso() {

do_installer_net() {
# net installer depends on installer.iso
rm -rf /parts
mkdir -p /parts
rm -rf /installer /parts
mkdir -p /installer
cp /bits/ipxe.efi.cfg /installer
mkdir -p /installer/EFI/BOOT
cp /bits/EFI/BOOT/BOOT*EFI /installer/EFI/BOOT/
/make-efi installer
mv /output.iso /parts/installer.iso
mv /output.iso /installer/installer.iso

# all of this is taken straight from ../../tools/makenet.sh
# it should be unified somehow
cp /bits/ipxe.efi.cfg /parts
mkdir -p /parts/EFI/BOOT
cp /bits/EFI/BOOT/BOOT*EFI /parts/EFI/BOOT/
# by default, BOOT*.EFI looks for grub.cfg in its source location at EFI/BOOT/grub.cfg, so put it there
cat <<'EOF' > /parts/EFI/BOOT/grub.cfg
# by default, BOOT*.EFI looks for grub.cfg in its source location at EFI/BOOT/grub.cfg, so put it there
cat <<'EOF' > /installer/EFI/BOOT/grub.cfg
echo "Downloading installer. This may take some time. Please wait patiently."
loopback loop0 ($cmddevice)/installer.iso
set root=loop0
set isnetboot=true
export isnetboot
configfile ($root)/EFI/BOOT/grub.cfg
EOF
tar -C /parts -chvf /output.tar .
tar -C /installer -chvf /output.tar .
dump /output.tar installer.net
}

Expand Down
Loading