chroot logic update

This commit is contained in:
2020-05-01 22:03:04 -05:00
parent 6071fba20e
commit 80c26f4d92
3 changed files with 92 additions and 59 deletions

37
CONFIG.sh Normal file → Executable file
View File

@@ -1,16 +1,10 @@
#!/bin/bash
# ---- Setup Aliases ---- #
shopt -s expand_aliases
alias echo="echo -e"
. CONFIG_SCRIPTS.sh
# ---- Setup Variables ---- #
SCRIPT_PATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )";
CHROOT_PTH="./work/chroot"
# Resolution of Xephyr... ex: 1920x1080 or 1600x900, etc
RESOLUTION="1920x1080"
@@ -41,7 +35,9 @@ OS_NAME=""
LIVE_USER=""
# ---- Call CONFIG Methods Here As Needed ---- #
# ---- Call CONFIG_SCRIPTS Methods Here As Needed ---- #
set_system_release;
cd "${SCRIPT_PATH}";
echo "Base Dir: " $(pwd) "\n";
@@ -53,32 +49,7 @@ mkdir -p image/{casper,isolinux,install}
# ---- DO NOT CHANGE OR REMOVE UNLESS YOU KNOW WHAT YOU ARE DOING ---- #
# Clean manifest-desktop file of unneeded parts
REMOVE='ubiquity ubiquity-frontend-gtk ubiquity-frontend-kde casper lupin-casper live-initramfs user-setup discover1 xresprobe os-prober libdebian-installer4'
# The system release version working from
function set_system_release() {
IN=$(cat /etc/os-release | grep "VERSION_CODENAME")
ARRY=(${IN//=/ })
SYSTEM_RELEASE="${ARRY[1]}"
}
function confirm_dialouge() {
echo $1
read -p "(yY/Nn) --> " ANSR
while [[ $ANSR != "y" ]] && [[ $ANSR != "Y" ]] && \
[[ $ANSR != "n" ]] && [[ $ANSR != "N" ]]
do
read -p "(yY/Nn) --> " ANSR
done
if [[ $ANSR == "n" ]] || [[ $ANSR == "N" ]]; then
return 1
fi
return 0
}