Skip to content

Commit

Permalink
Update pkg/eve/runme.sh for installer net to match what was one in ma…
Browse files Browse the repository at this point in the history
…kenet.sh

This was slightly out of date with the updated installer, which caused `docker run eve installer_net` to break. This aligns them again.

Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed Oct 6, 2024
1 parent e7bb230 commit 325d9e8
Showing 1 changed file with 9 additions and 9 deletions.
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

0 comments on commit 325d9e8

Please sign in to comment.