diff --git a/srcpkgs/pinebookpro-uboot/files/kernel.d/uboot b/srcpkgs/pinebookpro-uboot/files/kernel.d/uboot index a0fe18c311..5e62f579b3 100755 --- a/srcpkgs/pinebookpro-uboot/files/kernel.d/uboot +++ b/srcpkgs/pinebookpro-uboot/files/kernel.d/uboot @@ -1,26 +1,32 @@ #!/bin/sh kver=${2} +uuid=$(cat /etc/fstab | awk '$2 == "/" { print $1 }' | sed 's/^UUID=//') +dev=$(blkid -U "${uuid}") +partuuid=$(blkid -o value -s PARTUUID "${dev}") +bootpart=$(df -P /boot | tail -1 | awk '{ print $6 }') +bootstrip() { + echo ${1} | sed "s,^${bootpart}/,/," +} cat > /boot/boot.txt <