stagefiles: s/Require_stagefile/Require_stagefiles/

this function takes one or more required stage fileS _plural_, and exits
if any are missing (or at least it does now after the refactor).

let's rename it to make things more clear

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-15 13:05:44 +00:00
parent fe0d2358b9
commit fb0790cc43
56 changed files with 56 additions and 56 deletions

View File

@ -64,7 +64,7 @@ Remove_stagefile ()
}
# Ensure that all specified stagefiles exist (and thus that all associated stages are complete)
Require_stagefile ()
Require_stagefiles ()
{
if [ $# -eq 0 ]; then
Echo_warning "Bad `Require_stagefile` usage, no params were supplied"

View File

@ -27,7 +27,7 @@ then
fi
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin copying chroot..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -32,7 +32,7 @@ esac
Echo_message "Begin installing disk information..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -26,7 +26,7 @@ Check_Any_Bootloader_Role "grub-efi"
Echo_message "Begin preparing Grub based EFI support..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -26,7 +26,7 @@ Check_First_Bootloader_Role "grub-legacy"
Echo_message "Begin installing grub-legacy..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -26,7 +26,7 @@ Check_Any_Bootloader_Role "grub-pc"
Echo_message "Begin installing grub-pc..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin building binary hdd image..."
# Requiring stage file
Require_stagefile config bootstrap chroot_proc
Require_stagefiles config bootstrap chroot_proc
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin executing hooks..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin copying binary includes..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -38,7 +38,7 @@ esac
Echo_message "Begin building binary iso image..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin install linux-image..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin copying loadlin..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -28,7 +28,7 @@ Init_config_data "${@}"
Echo_message "Begin installing loopback.cfg..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin creating manifest..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin installing memtest..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -34,7 +34,7 @@ fi
Echo_message "Begin building binary netboot image..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -42,7 +42,7 @@ esac
Echo_message "Begin building onie binary..."
# Requiring stage file
Require_stagefile config binary_iso
Require_stagefiles config binary_iso
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin installing local package lists..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin building root filesystem image..."
# Requiring stage file
Require_stagefile config bootstrap binary_chroot
Require_stagefiles config bootstrap binary_chroot
# Checking stage file
Check_stagefile

View File

@ -26,7 +26,7 @@ Check_Any_Bootloader_Role "syslinux"
Echo_message "Begin installing syslinux..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin building binary tarball..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin copying win32-loader..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -34,7 +34,7 @@ fi
Echo_message "Begin building zsync control files..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
Echo_message "Configuring file /etc/apt/sources.list"

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|install-binary|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install|install-binary)

View File

@ -29,7 +29,7 @@ fi
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin scheduling firmware installation..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin executing hacks..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin executing hooks..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin copying chroot includes..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -27,7 +27,7 @@ Init_config_data "${@}"
Echo_message "Begin installing packages (${_PASS} pass)..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Set non-default stage file name
# Setting to default name with appended action name

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin interactive build..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin scheduling kernel image installation..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -27,7 +27,7 @@ Init_config_data "${@}"
Echo_message "Begin queueing installation of package lists (${_PASS} pass)..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Set non-default stage file name
# Setting to default name with appended action name

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin executing local preseeds..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -22,7 +22,7 @@ USAGE="${PROGRAM} {install|remove} [--force]"
Init_config_data "${@}"
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -27,7 +27,7 @@ then
fi
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
case "${1}" in
install)

View File

@ -49,7 +49,7 @@ esac
Echo_message "Begin installing debian-installer..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -27,7 +27,7 @@ then
fi
# Requiring stage file
Require_stagefile config source_debian
Require_stagefiles config source_debian
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin downloading sources..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -33,7 +33,7 @@ esac
Echo_message "Begin installing disk information..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -34,7 +34,7 @@ fi
Echo_message "Begin building source hdd image..."
# Requiring stage file
Require_stagefile config source_debian
Require_stagefiles config source_debian
# Checking stage file
Check_stagefile

View File

@ -24,7 +24,7 @@ Init_config_data "${@}"
Echo_message "Begin executing hooks..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -38,7 +38,7 @@ esac
Echo_message "Begin building source iso image..."
# Requiring stage file
Require_stagefile config source_debian
Require_stagefiles config source_debian
# Checking stage file
Check_stagefile

View File

@ -29,7 +29,7 @@ fi
Echo_message "Begin copying live-build configuration..."
# Requiring stage file
Require_stagefile config bootstrap
Require_stagefiles config bootstrap
# Checking stage file
Check_stagefile

View File

@ -35,7 +35,7 @@ Echo_message "Begin building source tarball..."
Echo_message "This may take a while."
# Requiring stage file
Require_stagefile config source_debian
Require_stagefiles config source_debian
# Checking stage file
Check_stagefile