From a27603875aed264c85f0aab7d5ab842731b7942e Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 14 Jun 2018 13:30:42 +0200 Subject: [PATCH] remove_this --- arch-install | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/arch-install b/arch-install index e259438..256fee0 100755 --- a/arch-install +++ b/arch-install @@ -61,7 +61,7 @@ function minimalinstallation() { chmod +x ${mountpoint}/usr/bin/aurinstaller if [ "${name}" != "noinstall" ]; then - echo "${name}´s_PC-${version}" > ${mountpoint}/etc/hostname + echo "${name}´s_PC-${version}" > ${mountpoint}/etc/hostname fi arch-chroot ${mountpoint} arch-graphical-install-auto adduser user1 user1 @@ -177,7 +177,7 @@ function usbkeyinstallation() { mkdir -p /mnt/usb-stick mount ${usbkeydevice} /mnt/usb-stick if ! [ -f "/mnt/usb-stick/archkey" ]; then - dd if=/dev/urandom of=/mnt/usb-stick/archkey bs=512 count=4 + dd if=/dev/urandom of=/mnt/usb-stick/archkey bs=512 count=4 fi cryptsetup luksAddKey ${device}${rootpartitionnummer} /mnt/usb-stick/archkey @@ -440,8 +440,8 @@ function installation { fi if [ "${name}" != "noinstall" ]; then - #hostname - echo "${name}´s_PC-${version}" > ${mountpoint}/etc/hostname + #hostname + echo "${name}´s_PC-${version}" > ${mountpoint}/etc/hostname fi if [ "${name}" != "noinstall" ]; then @@ -855,24 +855,18 @@ function abfrage() { read -p "Do you want to create a swap partition? : [Y/n] " swap read -p "Do you want to create a swapfile? : [y/N] " swapfile - #echo "This attitude can be seen with: " - #echo "systemctl enable openvpn-client@client.service activate and with" - #echo "systemctl disable openvpn-client@client.service deactivate" - #echo "The bandwidth is thereby reduced but the security significantly increased" - #read -p "Should the connection with a VPN be encrypted? : [Y/n] " openvpn - - if [ "${update}" != "n" ]; then - - echo "WARNING the system is not encrypted !!!" - echo "WARNING The system will not start without the USB stick !!!" - read -p "Should a USB stick be installed as the key for the system? : [y/N] " usbsecret - if [ "${usbsecret}" == "y" ]; then - read -p "Which USB stick should be selected for the USB-secret key ?: /dev/sdb1 " usbsecretdevice - [[ -z "${usbsecretdevice}" ]] && device=/dev/sdb1 - usbsecretdeviceuuid=$(blkid -s PARTUUID -o value ${usbsecretdevice}) - [[ -z "${usbsecretdeviceuuid}" ]] && mkfs.ext4 ${usbsecretdevice} - fi - fi + # if [ "${update}" != "n" ]; then + # + # echo "WARNING the system is not encrypted !!!" + # echo "WARNING The system will not start without the USB stick !!!" + # read -p "Should a USB stick be installed as the key for the system? : [y/N] " usbsecret + # if [ "${usbsecret}" == "y" ]; then + # read -p "Which USB stick should be selected for the USB-secret key ?: /dev/sdb1 " usbsecretdevice + # [[ -z "${usbsecretdevice}" ]] && device=/dev/sdb1 + # usbsecretdeviceuuid=$(blkid -s PARTUUID -o value ${usbsecretdevice}) + # [[ -z "${usbsecretdeviceuuid}" ]] && mkfs.ext4 ${usbsecretdevice} + # fi + # fi if [ "${raid}" == "n" ]; then read -p "Should the hard disk be encrypted? : [y/N] " verschluesselung