english-translate

This commit is contained in:
simono41 2018-03-05 16:53:39 +01:00
parent b7a7708146
commit 50ea86c980

View file

@ -14,7 +14,7 @@ if [ "${version}" == "%VERSION%" ]; then
fi fi
if [ "$2" == "libre" ]; then if [ "$2" == "libre" ]; then
echo "Libre-Modus Aktiviert!!!" echo "Libre mode Enabled!!!"
version="-libre" version="-libre"
fi fi
@ -23,7 +23,7 @@ if [[ $EUID -ne 0 ]]; then
sudo $0 2>&1 | tee /home/user1/install.log sudo $0 2>&1 | tee /home/user1/install.log
exit 0 exit 0
fi fi
echo "Als root Angemeldet" echo "Logged in as root"
function minimalinstallation() { function minimalinstallation() {
pacstrap -c -d -G -M ${mountpoint} $(cat /opt/${repo}/packages_voll.txt) pacstrap -c -d -G -M ${mountpoint} $(cat /opt/${repo}/packages_voll.txt)
@ -32,7 +32,7 @@ function minimalinstallation() {
function gitclone() { function gitclone() {
cd /opt/ cd /opt/
if [ -d "${repo}" ]; then if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} already exists!!!"
rm -Rv ${repo} rm -Rv ${repo}
fi fi
git clone ${WEBADDRESS} git clone ${WEBADDRESS}
@ -66,7 +66,7 @@ function secureumount() {
fi fi
if fdisk -l | grep /dev/mapper/luks0 > /dev/null; then if fdisk -l | grep /dev/mapper/luks0 > /dev/null; then
read -p "Soll /dev/mapper/luks0 entfernt werden? [Y/n] : " cryptremove read -p "Should /dev/mapper/luks0 be removed? [Y/n] : " cryptremove
if [ "${cryptremove}" != "n" ]; then if [ "${cryptremove}" != "n" ]; then
cryptsetup remove /dev/mapper/luks0 cryptsetup remove /dev/mapper/luks0
fi fi
@ -91,7 +91,7 @@ function partionierenmitswap() {
sgdisk -a 2048 -n 4:: -c 4:"Linux filesystem" -t 4:8300 ${device} sgdisk -a 2048 -n 4:: -c 4:"Linux filesystem" -t 4:8300 ${device}
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
echo "Bitte groß YES schreiben" echo "Please write big YES"
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer} cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0 cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
deviceluks="/dev/mapper/luks0" deviceluks="/dev/mapper/luks0"
@ -107,7 +107,7 @@ function partionierenohneswap() {
sgdisk -a 2048 -n 3:: -c 3:"Linux filesystem" -t 3:8300 ${device} sgdisk -a 2048 -n 3:: -c 3:"Linux filesystem" -t 3:8300 ${device}
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
echo "Bitte groß YES schreiben" echo "Please write big YES"
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer} cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0 cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
deviceluks="/dev/mapper/luks0" deviceluks="/dev/mapper/luks0"
@ -202,7 +202,7 @@ function removeinstaller {
function installation { function installation {
#boot #boot
echo "formatieren" echo "format"
mkfs.vfat -F 32 ${device}${efipartitionnummer} mkfs.vfat -F 32 ${device}${efipartitionnummer}
#root #root
@ -212,7 +212,7 @@ function installation {
subvolume #btrfs subvolume #btrfs
elif [ "${dateisystem}" == "ext4" ]; then elif [ "${dateisystem}" == "ext4" ]; then
echo "mit j bestätigen" echo "confirm with j"
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
mkfs.ext4 -L p_arch ${deviceluks} #ext4 mkfs.ext4 -L p_arch ${deviceluks} #ext4
mount ${deviceluks} ${mountpoint} mount ${deviceluks} ${mountpoint}
@ -232,13 +232,13 @@ function installation {
if [ "${offline}" != "n" ] if [ "${offline}" != "n" ]
then then
if [ -f /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs ]; then if [ -f /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs ]; then
echo "Es ist kein copytoram System." echo "It is not a copytoram system."
unsquashfs -f -d ${mountpoint} /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs unsquashfs -f -d ${mountpoint} /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs
elif [ -f /run/archiso/copytoram/airootfs.sfs ]; then elif [ -f /run/archiso/copytoram/airootfs.sfs ]; then
echo "Es ist ein copytoram System." echo "It is a copytoram system."
unsquashfs -f -d ${mountpoint} /run/archiso/copytoram/airootfs.sfs unsquashfs -f -d ${mountpoint} /run/archiso/copytoram/airootfs.sfs
else else
read -p "Wo ist die airootfs.sfs? Bitte den kompletten Pfad angeben oder die onlineinstallation wählen? [/airootfs.sfs/online] : " installationfehler read -p "Where is the airootfs.sfs? Please specify the complete path or choose the online installation? [/airootfs.sfs/online] : " installationfehler
if [ "${installationfehler}" == "online" ]; then if [ "${installationfehler}" == "online" ]; then
minimalinstallation minimalinstallation
else else
@ -259,7 +259,7 @@ function installation {
fi fi
parameter="${parameter}block filesystems keyboard " parameter="${parameter}block filesystems keyboard "
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
echo "btrfs-hook wird übersprungen!" echo "btrfs-hook is skipped!"
else else
if [ "${dateisystem}" == "btrfs" ]; then if [ "${dateisystem}" == "btrfs" ]; then
parameter="${parameter}btrfs " parameter="${parameter}btrfs "
@ -620,7 +620,7 @@ function systemdboot() {
if [ "${booteintraege}" != "n" ]; then if [ "${booteintraege}" != "n" ]; then
echo "Zusätzliche Booteinträge werden erstellt!!!" echo "Additional boot entries are created !!!"
arch-chroot ${mountpoint} efibootmgr -c -d ${device} -p 1 -l /EFI/systemd/systemd-bootx64.efi -L "Linux Boot Manager" arch-chroot ${mountpoint} efibootmgr -c -d ${device} -p 1 -l /EFI/systemd/systemd-bootx64.efi -L "Linux Boot Manager"
@ -640,85 +640,85 @@ function abfrage() {
# Lade Deutsches Tastaturlayout # Lade Deutsches Tastaturlayout
loadkeys de loadkeys de
read -p "Wie heissen sie?: " name read -p "What's your name?: " name
[[ -z "${name}" ]] && name=arch-linux [[ -z "${name}" ]] && name=arch-linux
# Partionierung # Partionierung
# UEFI oder Legacy-BIOS # UEFI oder Legacy-BIOS
echo "" echo ""
echo "UEFI = Unified Extensible Firmware Interface" echo "UEFI = Unified Extensible Firmware Interface"
echo "Empfohlen fuer Neuere PCs" echo "Recommended for newer PCs"
echo "WICHTIG DAFUER MUESSEN SIE IM BOOTMENUE DEN UEFI USB_STICK AUSGEWAEHLT HABEN SONST KANN KEIN UEFI BOOTEINTRAG ERSTELLT WERDEN!!!" echo "IMPORTANT FOR THIS MUST BE SELECTED IN THE BOAT MENU THE UEFI USB STICK OTHERWISE CAN NOT BE CREATED A UEFI BOAT ENTRY !!!"
echo "" echo ""
echo "BIOS = basic input/output system" echo "BIOS = basic input/output system"
echo "Empfohlen fuer Alte PCs und portable USB-Sticks" echo "Recommended for old PCs and portable USB sticks "
echo "" echo ""
echo "Bitte die Eingaben klein schreiben :D !!!" echo "Please write down the entries: D !!!"
echo "Für jedes ja must du ein y machen und für jedes nein ein n ok !!!" echo "For each yes you have to make a y and for every no an n, unless it is interpreted differently!!!"
echo "" echo ""
if mount | grep efi > /dev/null; then if mount | grep efi > /dev/null; then
echo "System unterstützt UEFI" echo "System supports UEFI"
read -p "Wie moechten sie ihre Festplatte partioniert haben: [UEFI/bios] " Partition read -p "How would you like to have your hard drive partitioned?: [UEFI/bios] " Partition
[[ -z "${Partition}" ]] && Partition=uefi [[ -z "${Partition}" ]] && Partition=uefi
else else
echo "System unterstützt kein UEFI" echo "System supports not UEFI"
read -p "Wie moechten sie ihre Festplatte partioniert haben: [uefi/BIOS] " Partition read -p "How would you like to have your hard drive partitioned?: [uefi/BIOS] " Partition
[[ -z "${Partition}" ]] && Partition=bios [[ -z "${Partition}" ]] && Partition=bios
fi fi
if [ "${Partition}" == "uefi" ] if [ "${Partition}" == "uefi" ]
then then
read -p "Soll mit systemd gebootet werden oder mit grub? [systemd/GRUB] : " boot read -p "Should be booted with systemd or with grub? [systemd/GRUB] : " boot
if [ "${boot}" == "systemd" ]; then if [ "${boot}" == "systemd" ]; then
read -p "Sollen noch zusätzliche Booteinträge erstelt werden? [Y/n] : " booteintraege read -p "Should additional boot entries be created? [Y/n] : " booteintraege
fi fi
fi fi
[[ -z "${boot}" ]] && boot=grub [[ -z "${boot}" ]] && boot=grub
fdisk -l fdisk -l
read -p "Geben sie eine Festplatte an: /dev/sda " device read -p "Specify a hard disk: /dev/sda " device
[[ -z "${device}" ]] && device=/dev/sda [[ -z "${device}" ]] && device=/dev/sda
if [ "${device}" == "/dev/nvme0n1" ]; then if [ "${device}" == "/dev/nvme0n1" ]; then
m2ssddevice=y m2ssddevice=y
fi fi
#read -p "Welches Passwort soll der Root erhalten?: root " pass #read -p "Which password should the root receive ?: root " pass
#[[ -z "${pass}" ]] && pass=root #[[ -z "${pass}" ]] && pass=root
read -p "Welches Dateisystem soll benutzt werden? [BTRFS/ext4] " dateisystem read -p "Which file system should be used? [BTRFS/ext4] " dateisystem
[[ -z "${dateisystem}" ]] && dateisystem=btrfs [[ -z "${dateisystem}" ]] && dateisystem=btrfs
if [ "${dateisystem}" == "btrfs" ]; then if [ "${dateisystem}" == "btrfs" ]; then
read -p "Soll ein raid gemacht werden?: [raid0/raid1/raid10/n] " raid read -p "Should a raid be made ?: [raid0/raid1/raid10/n] " raid
[[ -z "${raid}" ]] && raid=n [[ -z "${raid}" ]] && raid=n
if [ "${raid}" == "n" ]; then if [ "${raid}" == "n" ]; then
echo "Kein raid wird erzeugt!" echo "No raid is generated!"
else else
fdisk -l fdisk -l
read -p "Bitte geben sie die Festplatten in eine Reihe an die zu einem Raid verbunden werden sollen!!!: " device1 read -p "Please enter the disks in a row to be connected to a raid !!!: " device1
fi fi
echo "Standartmässige Snapshots / /home /opt /var/cache/pacman/pkg" echo "Standard snapshots / /home /opt /var/cache/pacman/pkg"
echo "Die Verzeichnisse dürfen sich nicht überlappen sonst kann es zu problemen mit dem unmounten kommen!!!" echo "The directories may not overlap otherwise there may be problems with the unmount !!!"
read -p "Sollen mehr Snapshots erstellt werden?: " mountsnaps read -p "Should more snapshots be created ?: " mountsnaps
fi fi
read -p "Wollen sie eine swap-partition erstellen? : [Y/n] " swap read -p "Do you want to create a swap partition? : [Y/n] " swap
read -p "Wollen sie eine swapfile erstellen? : [y/N] " swapfile read -p "Do you want to create a swapfile? : [y/N] " swapfile
#echo "Diese einstellung kann man mit: " #echo "This attitude can be seen with: "
#echo "systemctl enable openvpn-client@client.service aktivieren und mit" #echo "systemctl enable openvpn-client@client.service activate and with"
#echo "systemctl disable openvpn-client@client.service deaktivieren" #echo "systemctl disable openvpn-client@client.service deactivate"
#echo "Die Bandbreite wird dadurch reduziert aber die Sicherheit deutlich erhöht" #echo "The bandwidth is thereby reduced but the security significantly increased"
#read -p "Soll die Verbindung mit einer VPN verschlüsselt werden? : [Y/n] " openvpn #read -p "Should the connection with a VPN be encrypted? : [Y/n] " openvpn
if [ "${update}" != "n" ]; then if [ "${update}" != "n" ]; then
echo "WARNUNG das System wird nicht verschlüsselt!!!" echo "WARNING the system is not encrypted !!!"
echo "WARNUNG ohne den USB-Stick startet das System nicht mehr!!!" echo "WARNING The system will not start without the USB stick !!!"
read -p "Soll ein USB-Stick als Schlüssel für das System installiert werden? : [y/N] " usbsecret read -p "Should a USB stick be installed as the key for the system? : [y/N] " usbsecret
if [ "${usbsecret}" == "y" ]; then if [ "${usbsecret}" == "y" ]; then
read -p "Welcher USB-Stick soll ausgewählt werden für die USB-secret Schlüssel?: /dev/sdb1 " usbsecretdevice read -p "Which USB stick should be selected for the USB-secret key ?: /dev/sdb1 " usbsecretdevice
[[ -z "${usbsecretdevice}" ]] && device=/dev/sdb1 [[ -z "${usbsecretdevice}" ]] && device=/dev/sdb1
usbsecretdeviceuuid=$(blkid -s PARTUUID -o value ${usbsecretdevice}) usbsecretdeviceuuid=$(blkid -s PARTUUID -o value ${usbsecretdevice})
[[ -z "${usbsecretdeviceuuid}" ]] && mkfs.ext4 ${usbsecretdevice} [[ -z "${usbsecretdeviceuuid}" ]] && mkfs.ext4 ${usbsecretdevice}
@ -726,12 +726,12 @@ function abfrage() {
fi fi
if [ "${raid}" == "n" ]; then if [ "${raid}" == "n" ]; then
read -p "Soll die Festplatte verschlüsselt werden? : [y/N] " verschluesselung read -p "Should the hard disk be encrypted? : [y/N] " verschluesselung
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
modprobe dm-crypt modprobe dm-crypt
read -p "Soll noch zusätzlich ein USB-Stick zum entschlüsseln erstellt werden? : [y/N] " usbkey read -p "Should an additional USB stick be created for decryption? : [y/N] " usbkey
if [ "${usbkey}" == "y" ]; then if [ "${usbkey}" == "y" ]; then
read -p "Welcher USB-Stick soll gewählt werden?: /dev/sdb1 " usbkeydevice read -p "Which USB stick should be selected ?: /dev/sdb1 " usbkeydevice
[[ -z "${usbkeydevice}" ]] && usbkeydevice=/dev/sdb1 [[ -z "${usbkeydevice}" ]] && usbkeydevice=/dev/sdb1
usbkeydateisystem=$(blkid -s TYPE -o value ${usbkeydevice}) usbkeydateisystem=$(blkid -s TYPE -o value ${usbkeydevice})
usbkeyuuid=$(blkid -s UUID -o value ${usbkeydevice}) usbkeyuuid=$(blkid -s UUID -o value ${usbkeydevice})
@ -742,7 +742,7 @@ function abfrage() {
# berechnungen # berechnungen
if [ "${update}" != "n" ]; then if [ "${update}" != "n" ]; then
read -p "Soll eine Offline-Installation durchgefuehrt werden? : [Y/n] " offline read -p "Should an offline installation be carried out? : [Y/n] " offline
if [ "${offline}" != "n" ] if [ "${offline}" != "n" ]
then then
install="offline" install="offline"
@ -754,8 +754,8 @@ function abfrage() {
fi fi
if [ "${offline}" != "n" ]; then if [ "${offline}" != "n" ]; then
read -p "Wollen sie das VNC-Protokoll aktiviert haben? : [y/N] " x11vnc read -p "Do you want to activate the VNC protocol? : [y/N] " x11vnc
echo "Dieses Passwort gilt nur für die aktuelle Sitzung!!!" echo "This password is only valid for the current session !!!"
if [ "${x11vnc}" == "y" ]; then if [ "${x11vnc}" == "y" ]; then
x11vnc -storepasswd /etc/x11vnc.pass x11vnc -storepasswd /etc/x11vnc.pass
systemctl restart x11vnc.service systemctl restart x11vnc.service
@ -772,15 +772,15 @@ function abfrage() {
fi fi
# #
echo "Name: ${name}" echo "Surname: ${name}"
echo "Partionsart: ${Partition}" echo "partition type: ${Partition}"
echo "Bootloader: ${boot}" echo "Bootloader: ${boot}"
echo "Laufwerk: ${device}" echo "Drive: ${device}"
if [ "${raid}" != "n" ]; then if [ "${raid}" != "n" ]; then
echo "Raid: ${raid}" echo "Raid: ${raid}"
echo "Festplatten: ${device1}" echo "Hard Drives: ${device1}"
fi fi
echo "Dateisystem: ${dateisystem}" echo "File system: ${dateisystem}"
#echo "System-Partition ${speicher}" #echo "System-Partition ${speicher}"
#if [ "${swap}" != "n" ]; then #if [ "${swap}" != "n" ]; then
# echo "Swap-partition ${swapspeicher}" # echo "Swap-partition ${swapspeicher}"
@ -806,10 +806,10 @@ function abfrage() {
echo "USB-Label: ${usbsecretdevice}" echo "USB-Label: ${usbsecretdevice}"
fi fi
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
echo "Fesptplatte mit Luks 512KB verschlüsselung: aktiv" echo "Fesptplatte with Luks 512KB encryption: aktiv"
if [ "${usbkey}" == "y" ]; then if [ "${usbkey}" == "y" ]; then
echo "${usbkeydevice} wird als key für das entschlüsseln benutzt: " echo "${usbkeydevice} is used as key for decrypting: "
echo "Dateisystem: ${usbkeydateisystem}" echo "File system: ${usbkeydateisystem}"
fi fi
fi fi
@ -870,22 +870,22 @@ function abfrage() {
# #
read -p "Sind alle Angaben Richtig?: [y/N] " sicherheitsabfrage read -p "Are all the details correct ?: [y/N] " sicherheitsabfrage
if [ "$sicherheitsabfrage" != "y" ] if [ "$sicherheitsabfrage" != "y" ]
then then
echo "ABGEBROCHEN" echo "ABGEBROCHEN"
exit 1 exit 1
fi fi
# if [ "${update}" != "n" ]; then # if [ "${update}" != "n" ]; then
# echo "Nur für reine arch-linux systeme benötigend!!!" # echo "Only needed for pure arch-linux systems !!!"
# read -p "Sollen noch wichtige Packete für die installation installiert werden? [y/N] " packete # read -p "Are you still installing important packages for the installation? [y/N] " packete
# if [ "${packete}" == "y" ]; then # if [ "${packete}" == "y" ]; then
# pacman -Syu base base-devel syslinux efibootmgr efitools grub os-prober btrfs-progs \ # pacman -Syu base base-devel syslinux efibootmgr efitools grub os-prober btrfs-progs \
# dosfstools arch-install-scripts xorriso cdrtools squashfs-tools wget dosfstools btrfs-progs \ # dosfstools arch-install-scripts xorriso cdrtools squashfs-tools wget dosfstools btrfs-progs \
# gdisk dialog bash-completion git iw wireless_tools wpa_supplicant openvpn # gdisk dialog bash-completion git iw wireless_tools wpa_supplicant openvpn
# fi # fi
# fi # fi
echo "Betriebssystem wird installiert!!!" echo "Operating system is installed !!!"
sleep 5 sleep 5
@ -902,30 +902,30 @@ function abfrage() {
if [ "${1}" != "n" ] if [ "${1}" != "n" ]
then then
if wget -qO- ipv4.icanhazip.com 1>/dev/null 2>&1; then if wget -qO- ipv4.icanhazip.com 1>/dev/null 2>&1; then
read -p "Soll im Internet geguckt werden ob es ein neues Install-Script gibt und dann ausgefuehrt werden?: [Y/n] " update read -p "Should I look at the internet for a new install script and then run it ?: [Y/n] " update
if [ "${update}" == "debug" ] if [ "${update}" == "debug" ]
then then
echo "Überspringe das herunterladen einen neuen Scriptes!!!" echo "Skip the download a new script !!!"
else else
if [ "${update}" != "n" ] if [ "${update}" != "n" ]
then then
if [ -f /usr/bin/git ]; then if [ -f /usr/bin/git ]; then
gitclone gitclone
else else
echo "Git is not installet" echo "Git is not installed"
fi fi
/opt/${repo}/arch-install n ${version} /opt/${repo}/arch-install n ${version}
exit 0 exit 0
fi fi
fi fi
else else
echo "Keine Internetverbindung erkannt!" echo "No internet connection detected!"
update=n update=n
fi fi
fi fi
if [ "${update}" != "n" ]; then if [ "${update}" != "n" ]; then
echo "Online-Modus aktiviert!" echo "Online-Modus activated!"
#vpntunnel #vpntunnel
fi fi
# debug = Installation ueberspringen zu arch-graphical-install und DEBEUG-MODUS # debug = Installation ueberspringen zu arch-graphical-install und DEBEUG-MODUS
@ -936,8 +936,8 @@ secureumount
if [ "${name}" == "debug" ] if [ "${name}" == "debug" ]
then then
echo "DEBEUG-MODUS" echo "DEBEUG-MODUS"
echo "Wenn kein befehl mehr ausgefuehrt werden muss einfach eingabetaste druecken" echo "If no more commands are required, simply press enter"
echo "Welcher befehl soll ausgefuert werden? " echo "Which command should be executed? "
befehl=blablabla befehl=blablabla
while [ "$befehl" != "" ] while [ "$befehl" != "" ]
@ -949,16 +949,16 @@ then
fi fi
# #
echo "Eine Säuberung erhört die chance der Installation auf dem System." echo "A purge stops the chance of installing on the system."
echo "Es kann eine Zeit lang dauern!" echo "It may take a while!"
dd if=/dev/zero of=${device} bs=64M count=10 status=progress dd if=/dev/zero of=${device} bs=64M count=10 status=progress
# #
if [ "${Partition}" == "uefi" ] if [ "${Partition}" == "uefi" ]
then then
echo "Partioniere mit UEFI" echo "Partitions with UEFI"
if [ "${swap}" != "n" ]; then if [ "${swap}" != "n" ]; then
echo "Erstelle zustzliche swap-partition" echo "Create additional swap partition"
partionierenmitswap partionierenmitswap
else else
partionierenohneswap partionierenohneswap
@ -975,11 +975,11 @@ then
systemdboot systemdboot
fi fi
#removeinstaller #removeinstaller
echo "Fertig" echo "Finished"
elif [ "${Partition}" == "bios" ]; then elif [ "${Partition}" == "bios" ]; then
echo "Partioniere mit bios" echo "Partitions with MBR"
if [ "${swap}" != "n" ]; then if [ "${swap}" != "n" ]; then
echo "Erstelle zustzliche swap-partition" echo "Create additional swap partition"
partionierenmitswap partionierenmitswap
else else
partionierenohneswap partionierenohneswap
@ -990,14 +990,14 @@ elif [ "${Partition}" == "bios" ]; then
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device} arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg
#removeinstaller #removeinstaller
echo "Fertig" echo "Finished"
else else
echo "Eingabe Ungueltig" echo "Entry Invalid"
exit 1 exit 1
fi fi
if [ "${x11vnc}" == "y" ]; then if [ "${x11vnc}" == "y" ]; then
echo "Bitte geben sie ein Passwort für das VNC-Protokoll ein!" echo "Please enter a password for the VNC protocol!"
arch-chroot ${mountpoint} x11vnc -storepasswd /etc/x11vnc.pass arch-chroot ${mountpoint} x11vnc -storepasswd /etc/x11vnc.pass
arch-chroot ${mountpoint} systemctl enable x11vnc.service arch-chroot ${mountpoint} systemctl enable x11vnc.service
else else
@ -1005,7 +1005,7 @@ else
fi fi
if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}" == "online" ]; then if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}" == "online" ]; then
read -p "Soll die erweiterte Installation durchgeführt werden? [Y/n] " graphical read -p "Should the extended installation be carried out? [Y/n] " graphical
if [ "$graphical" != "n" ] if [ "$graphical" != "n" ]
then then
cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto
@ -1027,10 +1027,10 @@ sleep 5
secureumount secureumount
echo "" echo ""
echo "Fertig!!!" echo "Fertig!!!"
read -p "Installation erfolgreich Abgeschlossen. Wollen sie den PC NEUSTARTEN?: [Y/n] " sicherheitsabfrage read -p "allation completed successfully. Do you want to RESTART the PC ?: [Y/n] " sicherheitsabfrage
if [ "$sicherheitsabfrage" != "n" ] if [ "$sicherheitsabfrage" != "n" ]
then then
echo "starte neu" echo "restart now"
reboot reboot
fi fi
exit 0 exit 0