automount
This commit is contained in:
parent
29daf0e701
commit
d362fea862
1 changed files with 20 additions and 1 deletions
21
arch-install
21
arch-install
|
@ -55,7 +55,7 @@ function secureumount() {
|
||||||
for wort in ${mountsnaps}
|
for wort in ${mountsnaps}
|
||||||
do
|
do
|
||||||
if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then
|
if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then
|
||||||
umount ${mountpoint}${wort}
|
umount ${mountpoint}${wort}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
umount ${mountpoint}
|
umount ${mountpoint}
|
||||||
|
@ -407,6 +407,14 @@ function installation {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#autdiskmount
|
||||||
|
if [ "${autodisk}" != "n" ]
|
||||||
|
then
|
||||||
|
mkdir -p ${mountpoint}/run/media/user1/hdd
|
||||||
|
echo "UUID=${autodiskdeviceuuid} /run/media/user1/hdd ${autodiskdevicedateisystem} defaults 0 2" >> ${mountpoint}/etc/fstab
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -837,6 +845,17 @@ function abfrage() {
|
||||||
# install="offline"
|
# install="offline"
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
read -p "Should you an disk added to your fstab? : [n/N] " autodisk
|
||||||
|
if [ "${autodisk}" != "n" ]
|
||||||
|
then
|
||||||
|
read -p "Which DISK stick should be selected ?: /dev/sdb1 " autodiskdevice
|
||||||
|
[[ -z "${autodiskdevice}" ]] && autodiskdevice=/dev/sdb1
|
||||||
|
autodiskdevicedateisystem=$(blkid -s TYPE -o value ${usbkeydevice})
|
||||||
|
autodiskdeviceuuid=$(blkid -s UUID -o value ${usbkeydevice})
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${offline}" != "n" ] && [ "${update}" != "n" ]; then
|
if [ "${offline}" != "n" ] && [ "${update}" != "n" ]; then
|
||||||
read -p "Do you want to activate the VNC protocol? : [y/N] " x11vnc
|
read -p "Do you want to activate the VNC protocol? : [y/N] " x11vnc
|
||||||
echo "This password is only valid for the current session !!!"
|
echo "This password is only valid for the current session !!!"
|
||||||
|
|
Loading…
Reference in a new issue