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
2 changed files with 4 additions and 4 deletions
|
@ -165,7 +165,7 @@ run_bootloader()
|
||||||
local grub_installed
|
local grub_installed
|
||||||
|
|
||||||
[ -r /boot/grub/grub.cfg ] \
|
[ -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)
|
/boot/grub/grub.cfg)
|
||||||
[ -e /boot/grub/device.map ] && [ -n "${groot}" ] \
|
[ -e /boot/grub/device.map ] && [ -n "${groot}" ] \
|
||||||
&& dev=$(awk "/${groot}/{ print \$NF}" /boot/grub/device.map)
|
&& dev=$(awk "/${groot}/{ print \$NF}" /boot/grub/device.map)
|
||||||
|
@ -180,8 +180,8 @@ run_bootloader()
|
||||||
echo "update-initramfs: please run 'grub-install ${dev}'."
|
echo "update-initramfs: please run 'grub-install ${dev}'."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x /usr/sbin/grub-mkconfig ]; then
|
if command -v grub-mkconfig 2>&1 >/dev/null; then
|
||||||
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'initramfs-tools'
|
# Template file for 'initramfs-tools'
|
||||||
pkgname=initramfs-tools
|
pkgname=initramfs-tools
|
||||||
version=0.99.1.debian0.94.4
|
version=0.99.2.debian0.94.4
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="Tools for generating an initramfs"
|
short_desc="Tools for generating an initramfs"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue