File: 81-deploy-kexec

package info (click to toggle)
python-diskimage-builder 3.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,572 kB
  • sloc: sh: 7,380; python: 6,444; makefile: 37
file content (10 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
TFTP_MAC_ADDRESS="01-"`echo $BOOT_MAC_ADDRESS | sed 's/:/-/g' | tr "A-Z" "a-z"`
tftp -r /tftpboot/pxelinux.cfg/${TFTP_MAC_ADDRESS} -g ${BOOT_SERVER}
APPEND=$(tail -n1 ${TFTP_MAC_ADDRESS} | cut -f3- -d" ")

KERNEL=$(get_kernel_parameter BOOT_IMAGE | sed 's/deploy_//g')
RAMDISK=$(echo $KERNEL | sed 's/kernel/ramdisk/')

tftp -r ${KERNEL} -g ${BOOT_SERVER}
tftp -r ${RAMDISK} -g ${BOOT_SERVER}
kexec -l kernel --append="${APPEND}" --initrd=ramdisk && kexec -e