fix
This commit is contained in:
parent
9bf7e5f9e9
commit
47e64888ff
1 changed files with 9 additions and 9 deletions
|
@ -40,21 +40,21 @@ else
|
||||||
apt-get install bsdtar dosfstools -y
|
apt-get install bsdtar dosfstools -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cat /proc/mounts | grep /dev/"$device"1 > /dev/null; then
|
if cat /proc/mounts | grep ${device}1 > /dev/null; then
|
||||||
echo "gemountet"
|
echo "gemountet"
|
||||||
umount /dev/"$device"1
|
umount ${device}1
|
||||||
else
|
else
|
||||||
echo "nicht gemountet"
|
echo "nicht gemountet"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cat /proc/mounts | grep /dev/"$device"2 > /dev/null; then
|
if cat /proc/mounts | grep ${device}2 > /dev/null; then
|
||||||
echo "gemountet"
|
echo "gemountet"
|
||||||
umount /dev/"$device"2
|
umount ${device}2
|
||||||
else
|
else
|
||||||
echo "nicht gemountet"
|
echo "nicht gemountet"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fdisk -W always /dev/"$device" <<EOT
|
fdisk -W always ${device} <<EOT
|
||||||
o
|
o
|
||||||
p
|
p
|
||||||
n
|
n
|
||||||
|
@ -75,14 +75,14 @@ EOT
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
mkfs.vfat /dev/"$device"1
|
mkfs.vfat ${device}1
|
||||||
mkdir -p boot
|
mkdir -p boot
|
||||||
mount /dev/"$device"1 boot
|
mount ${device}1 boot
|
||||||
|
|
||||||
|
|
||||||
mkfs.ext4 /dev/"$device"2
|
mkfs.ext4 ${device}2
|
||||||
mkdir -p root
|
mkdir -p root
|
||||||
mount /dev/"$device"2 root
|
mount ${device}2 root
|
||||||
|
|
||||||
tar -Ipixz -xpf out/arch-spectre_os-*-armV7.tar.pxz -C root
|
tar -Ipixz -xpf out/arch-spectre_os-*-armV7.tar.pxz -C root
|
||||||
sync
|
sync
|
||||||
|
|
Loading…
Reference in a new issue