progress
This commit is contained in:
parent
08d8f2c9b2
commit
4983cddb5c
15
main.sh
15
main.sh
|
@ -156,11 +156,13 @@ do_partition() {
|
||||||
}
|
}
|
||||||
|
|
||||||
user() {
|
user() {
|
||||||
|
header "Username"
|
||||||
input "Username" "voiduser"
|
input "Username" "voiduser"
|
||||||
USERNAME=$output
|
USERNAME=$output
|
||||||
}
|
}
|
||||||
|
|
||||||
hostname() {
|
hostname() {
|
||||||
|
header "Hostname"
|
||||||
input "Hostname" "voidlinux"
|
input "Hostname" "voidlinux"
|
||||||
HOSTNAME=$output
|
HOSTNAME=$output
|
||||||
}
|
}
|
||||||
|
@ -176,6 +178,7 @@ gfx() {
|
||||||
gfx+=("$(basename $i)")
|
gfx+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#gfx[@]}" -gt "1" ]; then
|
if [ "${#gfx[@]}" -gt "1" ]; then
|
||||||
|
header "GFX"
|
||||||
multiplechoice "${gfx[@]}"
|
multiplechoice "${gfx[@]}"
|
||||||
GFX=$output
|
GFX=$output
|
||||||
elif [ "${#gfx[@]}" -eq "1" ]; then
|
elif [ "${#gfx[@]}" -eq "1" ]; then
|
||||||
|
@ -194,6 +197,7 @@ soundsystem() {
|
||||||
soundsystem+=("$(basename $i)")
|
soundsystem+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#soundsystem[@]}" -gt "1" ]; then
|
if [ "${#soundsystem[@]}" -gt "1" ]; then
|
||||||
|
header "Soundsystem"
|
||||||
multiplechoice "${soundsystem[@]}"
|
multiplechoice "${soundsystem[@]}"
|
||||||
SOUNDSYSTEM=$output
|
SOUNDSYSTEM=$output
|
||||||
elif [ "${#soundsystem[@]}" -eq "1" ]; then
|
elif [ "${#soundsystem[@]}" -eq "1" ]; then
|
||||||
|
@ -212,6 +216,7 @@ xserver() {
|
||||||
xserver+=("$(basename $i)")
|
xserver+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#xserver[@]}" -gt "1" ]; then
|
if [ "${#xserver[@]}" -gt "1" ]; then
|
||||||
|
header "Windowsystem"
|
||||||
multiplechoice "${xserver[@]}"
|
multiplechoice "${xserver[@]}"
|
||||||
XSERVER=$output
|
XSERVER=$output
|
||||||
elif [ "${#xserver[@]}" -eq "1" ]; then
|
elif [ "${#xserver[@]}" -eq "1" ]; then
|
||||||
|
@ -230,6 +235,7 @@ profile() {
|
||||||
profile+=("$(basename $i)")
|
profile+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#profile[@]}" -gt "1" ]; then
|
if [ "${#profile[@]}" -gt "1" ]; then
|
||||||
|
header "Select your Profile"
|
||||||
multiplechoice "${profile[@]}"
|
multiplechoice "${profile[@]}"
|
||||||
PROFILE=$output
|
PROFILE=$output
|
||||||
elif [ "${#profile[@]}" -eq "1" ]; then
|
elif [ "${#profile[@]}" -eq "1" ]; then
|
||||||
|
@ -257,6 +263,7 @@ printing() {
|
||||||
printing+=("$(basename $i)")
|
printing+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#printing[@]}" -ge "1" ]; then
|
if [ "${#printing[@]}" -ge "1" ]; then
|
||||||
|
header "Printing"
|
||||||
if yesno "Do you want printing?" "n"; then
|
if yesno "Do you want printing?" "n"; then
|
||||||
if [ "${#printing[@]}" -gt "1" ]; then
|
if [ "${#printing[@]}" -gt "1" ]; then
|
||||||
multiplechoice "${printing[@]}"
|
multiplechoice "${printing[@]}"
|
||||||
|
@ -278,6 +285,7 @@ printing() {
|
||||||
}
|
}
|
||||||
|
|
||||||
lang() {
|
lang() {
|
||||||
|
header "Sprache"
|
||||||
multiplechoice "de" "en"
|
multiplechoice "de" "en"
|
||||||
LANGUAGE=$output
|
LANGUAGE=$output
|
||||||
if [ "$LANGUAGE" == "de" ]; then
|
if [ "$LANGUAGE" == "de" ]; then
|
||||||
|
@ -290,6 +298,7 @@ bootloader() {
|
||||||
bootloader+=("$(basename $i)")
|
bootloader+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#bootloader[@]}" -gt "1" ]; then
|
if [ "${#bootloader[@]}" -gt "1" ]; then
|
||||||
|
header "Bootloader"
|
||||||
multiplechoice "${bootloader[@]}"
|
multiplechoice "${bootloader[@]}"
|
||||||
BOOTLOADER=$output
|
BOOTLOADER=$output
|
||||||
elif [ "${#bootloader[@]}" -eq "1" ]; then
|
elif [ "${#bootloader[@]}" -eq "1" ]; then
|
||||||
|
@ -309,6 +318,7 @@ network() {
|
||||||
network+=("$(basename $i)")
|
network+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#network[@]}" -gt "1" ]; then
|
if [ "${#network[@]}" -gt "1" ]; then
|
||||||
|
header "Networkmanager"
|
||||||
multiplechoice "${network[@]}"
|
multiplechoice "${network[@]}"
|
||||||
NETWORK=$output
|
NETWORK=$output
|
||||||
elif [ "${#network[@]}" -eq "1" ]; then
|
elif [ "${#network[@]}" -eq "1" ]; then
|
||||||
|
@ -323,12 +333,14 @@ network() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
header "Installation"
|
||||||
mkdir -p ${target}/var/db/xbps/keys
|
mkdir -p ${target}/var/db/xbps/keys
|
||||||
cp /var/db/xbps/keys/* ${target}/var/db/xbps/keys
|
cp /var/db/xbps/keys/* ${target}/var/db/xbps/keys
|
||||||
xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r $target "${pkgs[@]}"
|
xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r $target "${pkgs[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_chroot() {
|
do_chroot() {
|
||||||
|
header "Chroot into new System"
|
||||||
mkdir -p ${target}/tmp/vinstaller/
|
mkdir -p ${target}/tmp/vinstaller/
|
||||||
|
|
||||||
mount -t tmpfs -o size=50m tmpfs ${target}/tmp/vinstaller/
|
mount -t tmpfs -o size=50m tmpfs ${target}/tmp/vinstaller/
|
||||||
|
@ -369,8 +381,7 @@ chroot ${target} /tmp/vinstaller/main_chroot
|
||||||
}
|
}
|
||||||
|
|
||||||
ready() {
|
ready() {
|
||||||
echo ""; echo ""
|
header "Ready!!"
|
||||||
echo "#################"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "login: ${USERNAME}:${pass}"
|
echo "login: ${USERNAME}:${pass}"
|
||||||
echo "hostname: $HOSTNAME"
|
echo "hostname: $HOSTNAME"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user