mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
init-install: fix grub-install command
The grub_version variable was calling 'grub-install -v' (verbose) instead of 'grub-install -V' (version) causing unexpected failures. Fixes bug [YOCTO #12111]. (From OE-Core rev: 030a2ac1b434377c05e44014f71d217c1f96f2be) Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit 38dcbd96e82b1c40576a0514f053266429dca5d1) Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
003fc0f43c
commit
1affca64b9
@@ -132,7 +132,7 @@ fi
|
||||
|
||||
disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//")
|
||||
|
||||
grub_version=$(grub-install -v|sed 's/.* \([0-9]\).*/\1/')
|
||||
grub_version=$(grub-install -V|sed 's/.* \([0-9]\).*/\1/')
|
||||
|
||||
if [ $grub_version -eq 0 ] ; then
|
||||
bios_boot_size=0
|
||||
|
||||
Reference in New Issue
Block a user