From 29e2658f0ea446b136e1aa51afc1185ce33f8932 Mon Sep 17 00:00:00 2001 From: Renato Aguiar Date: Wed, 19 Feb 2020 05:47:58 -0800 Subject: [PATCH] pinebookpro-uboot: update to 0.0.20200212 - Add support for separate '/boot' partition - Fix optional initramfs loading - Redirect console output to display --- .../pinebookpro-uboot/files/kernel.d/uboot | 22 ++++++++++++------- srcpkgs/pinebookpro-uboot/template | 5 +++-- 2 files changed, 17 insertions(+), 10 deletions(-) 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 <