fix
This commit is contained in:
parent
7c6d6e1faa
commit
89bcc2096a
1 changed files with 8 additions and 7 deletions
15
arch-install
15
arch-install
|
@ -26,12 +26,7 @@ fi
|
||||||
echo "Als root Angemeldet"
|
echo "Als root Angemeldet"
|
||||||
|
|
||||||
function minimalinstallation() {
|
function minimalinstallation() {
|
||||||
#Mehrzeiler
|
pacstrap -c -d -G -M ${mountpoint} $(cat /opt/${repo}/packages_voll.txt)
|
||||||
while read line
|
|
||||||
do
|
|
||||||
pacstrap -c -d -G -M ${mountpoint} $line
|
|
||||||
done < /opt/${repo}/base.txt
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gitclone() {
|
function gitclone() {
|
||||||
|
@ -69,12 +64,18 @@ function secureumount() {
|
||||||
umount ${mountpoint}
|
umount ${mountpoint}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if fdisk -l | grep /dev/mapper/luks0 > /dev/null; then
|
if fdisk -l | grep /dev/mapper/luks0 > /dev/null; then
|
||||||
cryptsetup remove /dev/mapper/luks0
|
read -p "Soll /dev/mapper/luks0 entfernt werden? [Y/n] : " cryptremove
|
||||||
|
if [ "${cryptremove}" != "n" ]; then
|
||||||
|
cryptsetup remove /dev/mapper/luks0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cat /proc/mounts | grep ${device}1 > /dev/null; then
|
if cat /proc/mounts | grep ${device}1 > /dev/null; then
|
||||||
umount ${device}1
|
umount ${device}1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then
|
if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then
|
||||||
umount ${usbkeydevice}
|
umount ${usbkeydevice}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue