m22ssd_fix

This commit is contained in:
simono41 2018-06-27 01:54:37 +02:00
parent 28d8f097dc
commit 9af2bd4e82

View file

@ -10,6 +10,10 @@ fdisk -l
read -p "Geben sie eine Festplatte an: /dev/sda : " device read -p "Geben sie eine Festplatte an: /dev/sda : " device
[[ -z "${device}" ]] && device=/dev/sda [[ -z "${device}" ]] && device=/dev/sda
if [ "${device}" == "/dev/mmcblk0" ]; then
m2ssddevice=p
fi
name=spectre_os name=spectre_os
arch=armV7 arch=armV7
out_dir=out out_dir=out
@ -17,22 +21,22 @@ out_dir=out
mkdir -p boot mkdir -p boot
mkdir -p root mkdir -p root
if cat /proc/mounts | grep "$device"1 > /dev/null; then if cat /proc/mounts | grep ${device}${m2ssddevice}1 > /dev/null; then
echo "gemountet" echo "gemountet"
umount "$device"1 umount ${device}${m2ssddevice}1
else else
echo "nicht gemountet" echo "nicht gemountet"
fi fi
if cat /proc/mounts | grep "$device"2 > /dev/null; then if cat /proc/mounts | grep ${device}${m2ssddevice}2 > /dev/null; then
echo "gemountet" echo "gemountet"
umount "$device"2 umount ${device}${m2ssddevice}2
else else
echo "nicht gemountet" echo "nicht gemountet"
fi fi
mount "$device"1 boot mount ${device}${m2ssddevice}1 boot
mount "$device"2 root mount ${device}${m2ssddevice}2 root
cp -R boot/* root/boot/ cp -R boot/* root/boot/