This commit is contained in:
Ward from fusion-voyager-3 2024-01-23 18:32:24 +03:00
parent 9d55402ad9
commit ad443e9f50

View File

@ -23,10 +23,7 @@ then
if echo ${DISK} | grep -i "nvme"
then
#
while ! [ -f /dev/${DISK}p1 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p2 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p3 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p4 ]; do sleep 2; done
sleep 10
# Add filesystems
yes | mkfs -t vfat -F 32 /dev/${DISK}p1
yes | mkfs -t ext4 /dev/${DISK}p2
@ -44,10 +41,7 @@ then
mount /dev/${DISK}p1 /media/pika-install-mount/boot/efi
pikainstall -r /media/pika-install-mount/ -b /media/pika-install-mount/boot -e /media/pika-install-mount/boot/efi -l ${LOCALE} -k ${KEYBOARD} -t ${TIMEZONE} && touch /tmp/pika-installer-gtk4-successful.txt
else
while ! [ -f /dev/${DISK}1 ]; do sleep 2; done
while ! [ -f /dev/${DISK}2 ]; do sleep 2; done
while ! [ -f /dev/${DISK}3 ]; do sleep 2; done
while ! [ -f /dev/${DISK}4 ]; do sleep 2; done
sleep 10
# Add filesystems
yes | mkfs -t vfat -F 32 /dev/${DISK}1
yes | mkfs -t ext4 /dev/${DISK}2
@ -78,10 +72,7 @@ else
# add p to partition if it's nvme
if echo ${DISK} | grep -i "nvme"
then
while ! [ -f /dev/${DISK}p1 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p2 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p3 ]; do sleep 2; done
while ! [ -f /dev/${DISK}p4 ]; do sleep 2; done
sleep 10
# Add filesystems
yes | mkfs -t vfat -F 32 /dev/${DISK}p1
yes | mkfs -t ext4 /dev/${DISK}p2
@ -103,10 +94,7 @@ else
mount /dev/${DISK}p1 /media/pika-install-mount/boot/efi
pikainstall -r /media/pika-install-mount/ -b /media/pika-install-mount/boot -e /media/pika-install-mount/boot/efi -l ${LOCALE} -k ${KEYBOARD} -t ${TIMEZONE} && touch /tmp/pika-installer-gtk4-successful.txt
else
while ! [ -f /dev/${DISK}1 ]; do sleep 2; done
while ! [ -f /dev/${DISK}2 ]; do sleep 2; done
while ! [ -f /dev/${DISK}3 ]; do sleep 2; done
while ! [ -f /dev/${DISK}4 ]; do sleep 2; done
sleep 10
# Add filesystems
yes | mkfs -t vfat -F 32 /dev/${DISK}1
yes | mkfs -t ext4 /dev/${DISK}2