This commit is contained in:
teldra 2022-02-07 03:50:46 +01:00
parent 891a74e5c3
commit a1226ee3e4

18
main.sh
View File

@ -156,7 +156,7 @@ hostname() {
} }
base() { base() {
. etc/base . ./etc/base
packages packages
reset packages reset packages
} }
@ -164,7 +164,7 @@ base() {
gfx() { gfx() {
input "Which GFX System?" "amd nvidia intel" "unknown error" input "Which GFX System?" "amd nvidia intel" "unknown error"
GFX=$output GFX=$output
. etc/gfx/$GFX . ./etc/gfx/$GFX
packages packages
reset packages reset packages
} }
@ -172,7 +172,7 @@ gfx() {
soundsystem() { soundsystem() {
input "Which Soundsystem" "pulseaudio pipewire" "unknown error" input "Which Soundsystem" "pulseaudio pipewire" "unknown error"
SOUNDSYSTEM=$output SOUNDSYSTEM=$output
. etc/soundsystem/$SOUNDSYSTEM . ./etc/soundsystem/$SOUNDSYSTEM
packages packages
reset packages reset packages
} }
@ -183,7 +183,7 @@ de() {
if ! [ "$DE" == "minimal" ]; then if ! [ "$DE" == "minimal" ]; then
gfx gfx
soundsystem soundsystem
. etc/gfx/$DE . ./etc/gfx/$DE
packages packages
reset packages reset packages
fi fi
@ -221,11 +221,11 @@ do_install() {
do_chroot() { do_chroot() {
mkdir -p ${target}/tmp/vinstaller/run mkdir -p ${target}/tmp/vinstaller/run
cp ${main}/etc/base ${target}/tmp/vinstaller/run cp ./etc/base ${target}/tmp/vinstaller/run
if ! [ "$DE" == "minimal" ]; then if ! [ "$DE" == "minimal" ]; then
cp ${main}/etc/gfx/$GFX ${target}/tmp/vinstaller/run cp ./etc/gfx/$GFX ${target}/tmp/vinstaller/run
cp ${main}/etc/soundsystem/$SOUNDSYSTEM ${target}/tmp/vinstaller/run cp ./etc/soundsystem/$SOUNDSYSTEM ${target}/tmp/vinstaller/run
cp ${main}/etc/gfx/$DE ${target}/tmp/vinstaller/run cp ./etc/gfx/$DE ${target}/tmp/vinstaller/run
fi fi
echo "USERNAME=$USERNAME" > ${target}/tmp/vinstaller/vars echo "USERNAME=$USERNAME" > ${target}/tmp/vinstaller/vars
@ -238,7 +238,7 @@ do_chroot() {
cat <<EOF > ${target}/tmp/vinstaller/main_chroot cat <<EOF > ${target}/tmp/vinstaller/main_chroot
. /tmp/vinstaller/vars . /tmp/vinstaller/vars
for file in $(find /tmp/vinstaller/run -type f); do for file in \$(find /tmp/vinstaller/run -type f); do
. $file . $file
config config
done done