fix+multi-device-support

This commit is contained in:
simono41 2018-05-11 14:37:51 +02:00
parent 2f9992020c
commit 8a37143ac5

View file

@ -411,8 +411,16 @@ function installation {
if [ "${autodisk}" != "n" ] if [ "${autodisk}" != "n" ]
then then
mkdir -p ${mountpoint}/run/media/user1/hdd mkdir -p ${mountpoint}/run/media/user1/hdd
for wort in ${autodiskdevice}
do
echo "fstab ${wort} wird erstellt!!!"
autodiskdevicedateisystem=$(blkid -s TYPE -o value ${usbkeydevice})
autodiskdeviceuuid=$(blkid -s UUID -o value ${usbkeydevice})
echo "UUID=${autodiskdeviceuuid} /run/media/user1/hdd ${autodiskdevicedateisystem} defaults 0 2" >> ${mountpoint}/etc/fstab echo "UUID=${autodiskdeviceuuid} /run/media/user1/hdd ${autodiskdevicedateisystem} defaults 0 2" >> ${mountpoint}/etc/fstab
done
fi fi
@ -845,14 +853,20 @@ function abfrage() {
# install="offline" # install="offline"
# fi # fi
read -p "Should you an disk added to your fstab? : [n/N] " autodisk read -p "Should you an disk added to your fstab? : [y/N] " autodisk
if [ "${autodisk}" != "n" ] if [ "${autodisk}" != "n" ]
then then
read -p "Which DISK stick should be selected ?: /dev/sdb1 " autodiskdevice read -p "Which DISK stick should be selected ?: /dev/sdb1 /dev/sdc1 " autodiskdevice
[[ -z "${autodiskdevice}" ]] && autodiskdevice=/dev/sdb1 [[ -z "${autodiskdevice}" ]] && autodiskdevice=/dev/sdb1
for wort in ${autodiskdevice}
do
echo "fstab ${wort} wird erstellt!!!"
autodiskdevicedateisystem=$(blkid -s TYPE -o value ${usbkeydevice}) autodiskdevicedateisystem=$(blkid -s TYPE -o value ${usbkeydevice})
autodiskdeviceuuid=$(blkid -s UUID -o value ${usbkeydevice}) autodiskdeviceuuid=$(blkid -s UUID -o value ${usbkeydevice})
done
fi fi