Commit 32852e8f authored by InterGen's avatar InterGen

Updating core scripts

parent 3381c17d
......@@ -158,7 +158,7 @@ if [ $? -eq 1 ]; then
rm dependency_checks.sh
exit 1
fi
sleep 2
sleep 1
rm dependency_checks.sh
# Setup buildlog directories
......@@ -198,9 +198,9 @@ if [[ "$TARGET_CONFIRMATION" =~ ^y(es)?$ ]]; then
echo -e " ${GREEN}Setting up build directory mount...${CLEAR_COLORS}\n\n"
mkdir -pv "$IGos"
mount -v -t ext4 /dev/"$TARGET_PARTITION" "$IGos"
sleep 3
sleep 1
echo -e "\n\n ${GREEN}Build directory mount setup complete${CLEAR_COLORS}"
sleep 2
sleep 1
# Obtain and set variables in host system for user and root accounts
HEADER
......@@ -216,9 +216,9 @@ if [[ "$TARGET_CONFIRMATION" =~ ^y(es)?$ ]]; then
echo "export IGos=/mnt/igos" >> /root/.bashrc
echo "export IGosPart=/dev/${TARGET_PARTITION}" >> /home/"$USER"/.bash_profile
echo "export IGosPart=/dev/${TARGET_PARTITION}" >> /root/.bash_profile
sleep 3
sleep 1
echo -e "\n\n ${GREEN}Variable additions complete${CLEAR_COLORS}"
sleep 2
sleep 1
# Set up source directory and fetch sources
HEADER
......@@ -237,9 +237,9 @@ if [[ "$TARGET_CONFIRMATION" =~ ^y(es)?$ ]]; then
rm -rf InterGenOS-master*
mkdir -v "$IGos"/tools
ln -sv "$IGos"/tools /
sleep 3
sleep 1
echo -e "\n\n ${GREEN}Source retrieval complete${CLEAR_COLORS}"
sleep 2
sleep 1
# Create build system user
HEADER
......@@ -247,18 +247,18 @@ if [[ "$TARGET_CONFIRMATION" =~ ^y(es)?$ ]]; then
groupadd igos
useradd -s /bin/bash -g igos -m -k /dev/null igos
echo "igos:intergenos" | chpasswd
sleep 3
sleep 1
echo -e "\n\n ${GREEN}User creation complete${CLEAR_COLORS}"
sleep 2
sleep 1
# Assign build directory ownership to build system user
HEADER
echo -e "\n\n ${GREEN}Assigning tools and sources ownership to user '${WHITE}igos${GREEN}'...${CLEAR_COLORS}\n\n"
chown -v igos "$IGos"/tools
chown -v igos "$IGos"/core_sources
sleep 3
sleep 1
echo -e "\n\n ${GREEN}Directory ownership assingment complete${CLEAR_COLORS}"
sleep 2
sleep 1
# Setup igos shell for 'build_temporary_system.sh'
HEADER
......@@ -287,9 +287,9 @@ if [[ "$TARGET_CONFIRMATION" =~ ^y(es)?$ ]]; then
# Sets bash file ownership
chown -v igos:users /home/igos/.bash*
sleep 3
sleep 1
echo -e "\n\n ${GREEN}Shell variable preparation complete${CLEAR_COLORS}"
sleep 2
sleep 1
rm partitions partitionlist
else
sleep 1
......@@ -439,4 +439,3 @@ sleep 3
#######################
exit 0
#!/bin/bash
# 02.CleanEnvironment.sh
# -------------------------------------------------------
# InterGenOS: A Linux from Source Project
# build: .005
# URL: http://intergenstudios.com/intergen_os/
# GitLab: http://intergen.us/InterGen/InterGenOS
# ---------------------------------------------------
# InterGenStudios: 2019-03-30
# Copyright (c) 2019: InterGen InterGenStudios
# URL: https://intergenstudios.com
# --------------------------------
# License: GPL-2.0+
# URL: http://opensource.org/licenses/gpl-license.php
# ---------------------------------------------------
# InterGenOS is free software:
# You may redistribute it and/or modify it under the terms of the
# GNU General Public License as published by the Free Software
# Foundation, either version 2 of the License, or (at your discretion)
# any later version.
# ------------------
#------------------------------#
# BEGIN WRAPPER SCRIPT COMMAND #
#------------------------------#
env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' PATH=/tools/bin:/bin:/usr/bin /bin/bash ./03.BuildTemporarySystem.sh &&
#----------------------------#
# END WRAPPER SCRIPT COMMAND #
#----------------------------#
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment