Compare commits
10 Commits
1cc74e4746
...
133d6fe994
Author | SHA1 | Date |
---|---|---|
Joshua Boniface | 133d6fe994 | |
Joshua Boniface | c1be2d316b | |
Joshua Boniface | 2b60ea27dd | |
Joshua Boniface | 318449d55b | |
Joshua Boniface | 56d0f90baf | |
Joshua Boniface | 152e176bd6 | |
Joshua Boniface | 2927f9f6ca | |
Joshua Boniface | 24758a765b | |
Joshua Boniface | cafcfca9d0 | |
Joshua Boniface | f8e2eb7395 |
|
@ -63,7 +63,7 @@ while [ $# -gt 0 ]; do
|
|||
esac
|
||||
done
|
||||
|
||||
PACKAGE_LIST_MAIN="live-tools linux-image-amd64 mdadm lvm2 parted gdisk debootstrap grub-pc-bin grub-efi-amd64 sipcalc vim ca-certificates vlan"
|
||||
PACKAGE_LIST_MAIN="live-tools live-boot live-boot-initramfs-tools linux-image-amd64 mdadm lvm2 parted gdisk dosfstools debootstrap grub-pc-bin grub-efi-amd64 sipcalc vim ca-certificates vlan tftp-hpa curl ipmitool"
|
||||
PACKAGE_LIST_NONFREE="firmware-bnx2 firmware-bnx2x"
|
||||
|
||||
mkdir -p artifacts/lb
|
||||
|
|
19
buildpxe.sh
19
buildpxe.sh
|
@ -114,10 +114,6 @@ build_pxe() {
|
|||
|
||||
# Set global variables
|
||||
set root-url tftp://\${next-server}
|
||||
set host-url tftp://\${next-server}/host
|
||||
|
||||
# Load host/mac-*.ipxe if present (per-host host-args configuration)
|
||||
chain --autofree \${host-url}/mac-\${mac:hexraw}.ipxe ||
|
||||
|
||||
set menu-default pvc-installer
|
||||
set submenu-default pvc-installer
|
||||
|
@ -125,11 +121,24 @@ set submenu-default pvc-installer
|
|||
:pvc-installer
|
||||
kernel \${root-url}/vmlinuz
|
||||
initrd \${root-url}/initrd.img
|
||||
imgargs vmlinuz console=tty0 console=ttyS0,115200n8 boot=live components timezone=America/Toronto fetch=\${root-url}/filesystem.squashfs username=root \${host-args}
|
||||
imgargs vmlinuz console=tty0 console=ttyS0,115200n8 vga=normal nomodeset boot=live components ethdevice-timeout=60 timezone=America/Toronto fetch=\${root-url}/filesystem.squashfs username=root pvcinstall.preseed=on pvcinstall.seed_host=\${next-server} pvcinstall.seed_file=/host/mac-\${mac:hexraw}.preseed
|
||||
|
||||
boot
|
||||
EOF
|
||||
echo "done."
|
||||
|
||||
echo -n "Downloading iPXE binary undionly.kpxe (chainloads arbitrary PXE clients)... "
|
||||
pushd ${outputdir} &>/dev/null
|
||||
wget -O undionly.kpxe https://boot.ipxe.org/undionly.kpxe &>/dev/null || fail "failed to download undionly.kpxe."
|
||||
popd &>/dev/null
|
||||
echo "done."
|
||||
|
||||
echo -n "Downloading iPXE binary undionly.kpxe (chainloads UEFI clients)... "
|
||||
pushd ${outputdir} &>/dev/null
|
||||
wget -O ipxe.efi https://boot.ipxe.org/ipxe.efi &>/dev/null || fail "failed to download ipxe.efi."
|
||||
popd &>/dev/null
|
||||
echo "done."
|
||||
|
||||
sudo chown -R $(whoami) ${outputdir}
|
||||
sudo chmod -R u+w ${outputdir}
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
###
|
||||
### General definitions
|
||||
###
|
||||
|
||||
# The Debian release to use
|
||||
debrelease="bullseye"
|
||||
|
||||
# The Debian mirror to use
|
||||
debmirror="http://debian.mirror.rafal.ca/debian"
|
||||
|
||||
# Package list (installed during debootstrap)
|
||||
debpkglist="lvm2,parted,gdisk,grub-pc,grub-efi-amd64,linux-image-amd64,sudo,vim,gpg,gpg-agent,aptitude,openssh-server,vlan,ifenslave,python2,python3,ca-certificates,ntp"
|
||||
|
||||
# Package list (installed in chroot)
|
||||
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x"
|
||||
|
||||
###
|
||||
### Per-host definitions
|
||||
###
|
||||
|
||||
# The hostname of the system (set per-run)
|
||||
target_hostname="HOSTNAME"
|
||||
|
||||
# The target disk (either path or model to find; path overrides model if set)
|
||||
target_disk_path="/dev/disk/by-path/pci-0000:01:00.0-scsi-0:2:0:0" # Example: Dell BOSS on R6515 via explicit path
|
||||
target_disk_model="DELLBOSS VD" # Example: Dell BOSS on R6515 via model name
|
||||
|
||||
# SSH key method (usually tftp)
|
||||
target_keys_method="tftp"
|
||||
|
||||
# SSH key path
|
||||
target_keys_path="keys.txt"
|
||||
|
||||
# Deploy username
|
||||
target_deploy_user="deploy"
|
935
install.sh
935
install.sh
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue