From f93fa286d5e7348150aab4874794f7d96dac0894 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 4 May 2015 20:33:00 +0200 Subject: [PATCH] Renaming grub2 helper to grub-pc for later grub-efi addition. --- scripts/build/binary | 2 +- scripts/build/{binary_grub2 => binary_grub-pc} | 18 +++++++++--------- scripts/build/binary_iso | 4 ++-- scripts/build/config | 2 +- share/bootloaders/{grub2 => grub-pc}/grub.cfg | 0 share/bootloaders/{grub2 => grub-pc}/splash.tga | Bin 6 files changed, 13 insertions(+), 13 deletions(-) rename scripts/build/{binary_grub2 => binary_grub-pc} (94%) rename share/bootloaders/{grub2 => grub-pc}/grub.cfg (100%) rename share/bootloaders/{grub2 => grub-pc}/splash.tga (100%) diff --git a/scripts/build/binary b/scripts/build/binary index 0e9059a9c..02a01b331 100755 --- a/scripts/build/binary +++ b/scripts/build/binary @@ -61,7 +61,7 @@ lb binary_package-lists ${@} lb binary_linux-image ${@} lb binary_memtest ${@} lb binary_grub ${@} -lb binary_grub2 ${@} +lb binary_grub-pc ${@} lb binary_syslinux ${@} lb binary_disk ${@} lb binary_loadlin ${@} diff --git a/scripts/build/binary_grub2 b/scripts/build/binary_grub-pc similarity index 94% rename from scripts/build/binary_grub2 rename to scripts/build/binary_grub-pc index 659db123d..117846ca4 100755 --- a/scripts/build/binary_grub2 +++ b/scripts/build/binary_grub-pc @@ -14,7 +14,7 @@ set -e [ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh # Setting static variables -DESCRIPTION="$(Echo 'installs grub2 into binary')" +DESCRIPTION="$(Echo 'installs grub-pc into binary')" HELP="" USAGE="${PROGRAM} [--force]" @@ -24,12 +24,12 @@ Arguments "${@}" Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Set_defaults -if [ "${LB_BOOTLOADER}" != "grub2" ] +if [ "${LB_BOOTLOADER}" != "grub-pc" ] then exit 0 fi -Echo_message "Begin installing grub2..." +Echo_message "Begin installing grub-pc..." # Requiring stage file Require_stagefile .build/config .build/bootstrap @@ -37,8 +37,8 @@ Require_stagefile .build/config .build/bootstrap # Checking stage file Check_stagefile .build/binary_grub -# Checking grub2 templates -Check_templates grub2 +# Checking grub-pc templates +Check_templates grub-pc # Checking lock file Check_lockfile .lock @@ -91,17 +91,17 @@ Grub_install_entry () LINUX_INSTALL="${LINUX_INSTALL}\n}" } -if [ -e "config/bootloaders/grub2" ] +if [ -e "config/bootloaders/grub-pc" ] then # Internal local copy - _SOURCE="config/bootloaders/grub2" + _SOURCE="config/bootloaders/grub-pc" else # Internal system copy if [ -n "${LIVE_BUILD}" ] then - _SOURCE="${LIVE_BUILD}/share/bootloaders/grub2" + _SOURCE="${LIVE_BUILD}/share/bootloaders/grub-pc" else - _SOURCE="/usr/share/live/build/bootloaders/grub2" + _SOURCE="/usr/share/live/build/bootloaders/grub-pc" fi fi diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index 44a9418c8..e81a13af1 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -115,7 +115,7 @@ case "${LB_BOOTLOADER}" in XORRISO_EXCLUDE="boot/grub/stage2_eltorito" ;; - grub2) + grub-pc) XORRISO_OPTIONS="${XORRISO_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" XORRISO_OPTIONS="${XORRISO_OPTIONS} -b boot/grub/grub_eltorito -J" XORRISO_EXCLUDE="boot/grub/grub_eltorito" @@ -149,7 +149,7 @@ esac # XORRISO_OPTIONS="${XORRISO_OPTIONS} -m ${XORRISO_EXCLUDE}" #fi -if [ "${LB_BOOTLOADER}" = "grub2" ] +if [ "${LB_BOOTLOADER}" = "grub-pc" ] then cat > binary.sh << EOF diff --git a/scripts/build/config b/scripts/build/config index 8c05dcf36..74eb6ae43 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -32,7 +32,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--bootappend-install PARAMETER|\"PARAMETERS\"]\n\ \t [--bootappend-live PARAMETER|\"PARAMETERS\"]\n\ \t [--bootappend-live-failsafe PARAMETER|\"PARAMETERS\"]\n\ -\t [--bootloader grub|grub2|syslinux]\n\ +\t [--bootloader grub|grub-pc|syslinux]\n\ \t [--cache true|false]\n\ \t [--cache-indices true|false]\n\ \t [--cache-packages true|false]\n\ diff --git a/share/bootloaders/grub2/grub.cfg b/share/bootloaders/grub-pc/grub.cfg similarity index 100% rename from share/bootloaders/grub2/grub.cfg rename to share/bootloaders/grub-pc/grub.cfg diff --git a/share/bootloaders/grub2/splash.tga b/share/bootloaders/grub-pc/splash.tga similarity index 100% rename from share/bootloaders/grub2/splash.tga rename to share/bootloaders/grub-pc/splash.tga -- 2.11.4.GIT