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:
Adrian Gibanel Lopez 2017-12-16 22:18:21 +00:00 committed by Raphaël Hertzog
parent f77034606e
commit d3edb76ad4
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -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

View File

@ -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