mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41:17 -03:00
45 lines
1.1 KiB
Bash
Executable file
45 lines
1.1 KiB
Bash
Executable file
#!/bin/bash -u
|
|
|
|
# shellcheck disable=SC1091
|
|
# Load configuration parameter
|
|
source ./config01.sh
|
|
|
|
# Load common functions
|
|
source ../lib/common.sh
|
|
|
|
function main() {
|
|
|
|
# This is the mount point of the install target.
|
|
export TARGETMOUNTPOINT="/target"
|
|
|
|
# *******************************************************************************
|
|
# Confirmation before installation
|
|
# *******************************************************************************
|
|
|
|
# parameters for distribution check
|
|
export DISTRIBUTIONSIGNATURE="ubuntu"
|
|
export DISTRIBUTIONNAME="Ubuntu"
|
|
|
|
# Check whetehr given signature exist or not
|
|
if ! distribution_check ; then
|
|
return 1 # with error status
|
|
fi
|
|
|
|
# Common part of the parameter confirmation
|
|
if ! confirmation ; then
|
|
return 1 # with error status
|
|
fi
|
|
|
|
# *******************************************************************************
|
|
# Pre-install stage
|
|
# *******************************************************************************
|
|
|
|
# Common part of the pre-install stage
|
|
if ! pre_install ; then
|
|
return 1 # with error status
|
|
fi
|
|
}
|
|
|
|
# main routine
|
|
main
|
|
|