This commit is contained in:
simono41 2018-05-11 14:41:09 +02:00
parent 8a37143ac5
commit 882e26e535

View file

@ -410,13 +410,13 @@ function installation {
#autdiskmount
if [ "${autodisk}" != "n" ]
then
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
mkdir -p ${mountpoint}/run/media/user1/${wort#/*/}
echo "UUID=${autodiskdeviceuuid} /run/media/user1/${wort#/*/} ${autodiskdevicedateisystem} defaults 0 2" >> ${mountpoint}/etc/fstab
done