From c345f02b22e595954e569d18a3c9b8d198ff5e56 Mon Sep 17 00:00:00 2001 From: linxin Date: Mon, 29 Jan 2024 14:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:TSG-18861:=E6=9F=A5=E6=89=BE?= =?UTF-8?q?onie=E5=90=AF=E5=8A=A8=E9=A1=B9=E7=BC=BA=E5=B0=91=E5=8F=82?= =?UTF-8?q?=E6=95=B0-v=20=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=9F=A5=E6=89=BEboot?= =?UTF-8?q?=20number=20=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootconf/sysroot-lib/onie/common-blkdev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootconf/sysroot-lib/onie/common-blkdev b/rootconf/sysroot-lib/onie/common-blkdev index 06a7e09c..c1ed85de 100644 --- a/rootconf/sysroot-lib/onie/common-blkdev +++ b/rootconf/sysroot-lib/onie/common-blkdev @@ -23,7 +23,7 @@ set_onie_next_boot() # select ONIE as the next OS to boot. The "BootNext" variable # is only used once by the firmware, after which the permanent # "BootOrder" variable is used. - local boot_num=$(efibootmgr | grep "ONIE:" | grep "HD" | awk '{ print $1 }') + local boot_num=$(efibootmgr -v| grep "ONIE:" | grep "HD" | awk '{ print $1 }') boot_num=${boot_num#Boot} # Remove trailing '*' boot_num=${boot_num%\*}