Fix handling of multiple kernels in binary_loopback_cfg
Now grub.cfg shows all the kernel options. Before this patch when you had more than two kernels it only showed the auto option. Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
This commit is contained in:
parent
f77034606e
commit
d3edb76ad4
|
@ -3,6 +3,8 @@ live-build (1:20171208) UNRELEASED; urgency=medium
|
|||
* Restore i386/amd64 autodetection in grub after rename of
|
||||
i386 kernel from -486 to -686. Closes: #884585
|
||||
Thanks to Adrian Gibanel Lopez for the patch.
|
||||
* Fix handling of multiple kernels in binary_loopback_cfg.
|
||||
Closes: #884588 Thanks to Adrian Gibanel Lopez for the patch.
|
||||
|
||||
-- Raphaël Hertzog <hertzog@debian.org> Thu, 21 Dec 2017 14:14:04 +0100
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ fi
|
|||
|
||||
_COUNT=0
|
||||
for KERNEL in chroot/boot/vmlinuz-*; do
|
||||
_COUNT=$(( $COUNT + 1 ))
|
||||
_COUNT=$(( $_COUNT + 1 ))
|
||||
done
|
||||
|
||||
if [ $_COUNT -gt 1 ]; then
|
||||
|
|
Loading…
Reference in New Issue