...
 
Commits (3)
pyra-install (0.2) stretch; urgency=medium
[ aTc ]
* lsblk didn't always work from init-hwtest, switched to raw blkid
* add uboot based on latest gta04 version
-- Pyra Dev <pyra-dev@pyra-handheld.com> Sat, 22 Jun 2019 00:29:15 +0200
pyra-install (0.1) stretch; urgency=medium
[ Pyra Dev ]
......
......@@ -31,8 +31,10 @@ lsblk $DISK
#if [[ $? != 0 ]] ; then echo Failed; exit 1; fi
echo "Installing to $DISK , make sure all partitions are unmounted"
read -p "Are you sure you want to continue? <y/N> " prompt
if ! [[ $prompt =~ [yY](es)* ]] ; then echo "Exiting.." ; exit 1 ; fi
if [[ "$INITHWTEST" -ne 1 ]] ; then
read -p "Are you sure you want to continue? <y/N> " prompt
if ! [[ $prompt =~ [yY](es)* ]] ; then echo "Exiting.." ; exit 1 ; fi
fi
#exit 0
......@@ -107,11 +109,14 @@ else
tar --numeric-owner -xzf $IMAGE -C rootfs
fi
ROOTPARTUUID=$(lsblk -n -o PARTUUID $PART)
BOOTPARTUUID=$(lsblk -n -o PARTUUID $BOOTPART)
ROOTPARTUUID=$(blkid -p $PART -s PART_ENTRY_UUID -o value)
BOOTPARTUUID=$(blkid -p $BOOTPART -s PART_ENTRY_UUID -o value)
#ROOTPARTUUID=$(lsblk -n -o PARTUUID $PART)
#BOOTPARTUUID=$(lsblk -n -o PARTUUID $BOOTPART)
# fs uuid sometimes failed, use PARTUUID for everything
ROOTFSUUID=$(lsblk -n -o UUID $PART)
BOOTFSUUID=$(lsblk -n -o UUID $BOOTPART)
#ROOTFSUUID=$(lsblk -n -o UUID $PART)
#BOOTFSUUID=$(lsblk -n -o UUID $BOOTPART)
sed -i -e 's/linux \/boot/linux /g' rootfs/boot/extlinux/linux.cfg
......