Skip to content

Commit

Permalink
Merge branch 'http-download' of github.com:robertdahlem/rear into htt…
Browse files Browse the repository at this point in the history
…p-download
  • Loading branch information
robertdahlem committed Dec 29, 2023
2 parents be9ad53 + 17c34ba commit c7885a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions usr/share/rear/conf/default.conf
Expand Up @@ -1358,6 +1358,24 @@ PXE_REMOVE_OLD_LINKS=
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-installation-server-setup.html#sect-network-boot-setup-ppc-grub2
PXE_CONFIG_GRUB_STYLE=
#
# Support for downloading kernel and initrd by http, thus making downloads faster.
# First, you have to use lpxelinux.0 instead of pxelinux.0, the former supports http downloads.
# It's compatible, just replace pxelinux.0 in your TFTP directory or set bootfile-name to
# lpxelinux.0 in your DHCP server.
# Obviously, OUTPUT needs to be set to PXE.
# PXE_CONFIG_URL must be set and point to your pxelinux.cfg directory using nfs or any other mountable scheme.
# PXE_TFTP_URL must be set and point to your web server root directory using nfs or any other mountable scheme.
# PXE_CONFIG_GRUB_STYLE must NOT be set to yes.
# When setting PXE_SCHEME, use something like "http://my.web.server/" and mind the trailing slash!
# It must point to the same directory as PXE_TFTP_URL.
# Example:
# OUTPUT=PXE
# PXE_CONFIG_GRUB_STYLE=
# PXE_CONFIG_URL=nfs://tftp-server/var/lib/tftpboot/pxelinux.cfg
# PXE_TFTP_URL=nfs://web-server/var/www/html
# PXE_SCHEME=http://web-server/ # mind the trailing slash!
PXE_SCHEME=
#
# The way we start up in our PXE mode (keywords known are 'automatic', 'unattended', and empty)
# 'automatic' is the auto_recover mode which means boot automatic with ReaR and execute a 'rear recover'
# but when a question has to be answered (e.g. during migration mode) it will wait on an answer.
Expand Down
6 changes: 3 additions & 3 deletions usr/share/rear/lib/bootloader-functions.sh
Expand Up @@ -766,7 +766,7 @@ function make_pxelinux_config {
echo "MENU title Relax-and-Recover v$VERSION"

# Display message now:
echo "display $PXE_MESSAGE"
echo "display $PXE_SCHEME$PXE_MESSAGE"
echo "say ----------------------------------------------------------"

# start with rear entry
Expand All @@ -791,8 +791,8 @@ function make_pxelinux_config {
echo "Rescue image kernel $KERNEL_VERSION ${IPADDR:+on $IPADDR} $(date -R)"
echo "${BACKUP:+BACKUP=$BACKUP} ${OUTPUT:+OUTPUT=$OUTPUT} ${BACKUP_URL:+BACKUP_URL=$BACKUP_URL}"
echo "ENDTEXT"
echo " kernel $PXE_KERNEL"
echo " append initrd=$PXE_INITRD root=/dev/ram0 vga=normal rw $KERNEL_CMDLINE $PXE_RECOVER_MODE"
echo " kernel $PXE_SCHEME$PXE_KERNEL"
echo " append initrd=$PXE_SCHEME$PXE_INITRD root=/dev/ram0 vga=normal rw $KERNEL_CMDLINE $PXE_RECOVER_MODE"
echo "say ----------------------------------------------------------"

# start with optional rear http entry if specified
Expand Down

0 comments on commit c7885a8

Please sign in to comment.