initramfs-tools: update to 0.99.2.
- Fixed an error in run_bootloader() that failed to detect the device where GRUB should be installed. - Use command -v to detect presence of grub-mkconfig.
This commit is contained in:
parent
41bc77ebf3
commit
f3c2daf62c
|
@ -165,7 +165,7 @@ run_bootloader()
|
|||
local grub_installed
|
||||
|
||||
[ -r /boot/grub/grub.cfg ] \
|
||||
&& groot=$(awk '/^set root=/{print substr($2, 7, 3); exit}' \
|
||||
&& groot=$(awk '/^set root=/{print substr($2, 8, 3); exit}' \
|
||||
/boot/grub/grub.cfg)
|
||||
[ -e /boot/grub/device.map ] && [ -n "${groot}" ] \
|
||||
&& dev=$(awk "/${groot}/{ print \$NF}" /boot/grub/device.map)
|
||||
|
@ -180,8 +180,8 @@ run_bootloader()
|
|||
echo "update-initramfs: please run 'grub-install ${dev}'."
|
||||
fi
|
||||
|
||||
if [ -x /usr/sbin/grub-mkconfig ]; then
|
||||
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
|
||||
if command -v grub-mkconfig 2>&1 >/dev/null; then
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'initramfs-tools'
|
||||
pkgname=initramfs-tools
|
||||
version=0.99.1.debian0.94.4
|
||||
version=0.99.2.debian0.94.4
|
||||
build_style=custom-install
|
||||
short_desc="Tools for generating an initramfs"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
|
Loading…
Reference in New Issue
Block a user