mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 11:56:03 +00:00
Don't assume that the presence of /etc/default/grub or
/etc/default/grub.d/*.cfg means that any particular item is set in it (LP: #1199731).
This commit is contained in:
parent
590b05435c
commit
50f74fa5bb
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -9,6 +9,9 @@ grub2 (2.00-15) UNRELEASED; urgency=low
|
|||||||
* Make the description of grub-firmware-qemu a little more generic, rather
|
* Make the description of grub-firmware-qemu a little more generic, rather
|
||||||
than assuming that bochsbios provides qemu's default BIOS image (closes:
|
than assuming that bochsbios provides qemu's default BIOS image (closes:
|
||||||
#714277).
|
#714277).
|
||||||
|
* Don't assume that the presence of /etc/default/grub or
|
||||||
|
/etc/default/grub.d/*.cfg means that any particular item is set in it
|
||||||
|
(LP: #1199731).
|
||||||
|
|
||||||
[ Debconf translations ]
|
[ Debconf translations ]
|
||||||
* Hungarian (Dr. Nagy Elemér Károly).
|
* Hungarian (Dr. Nagy Elemér Károly).
|
||||||
|
5
debian/config.in
vendored
5
debian/config.in
vendored
@ -38,13 +38,14 @@ esac
|
|||||||
|
|
||||||
for x in /etc/default/grub /etc/default/grub.d/*.cfg ; do
|
for x in /etc/default/grub /etc/default/grub.d/*.cfg ; do
|
||||||
if [ -e "$x" ]; then
|
if [ -e "$x" ]; then
|
||||||
DEFAULT_FOUND="yes"
|
|
||||||
. "$x"
|
. "$x"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$DEFAULT_FOUND" = "yes" ]; then
|
if [ "${GRUB_CMDLINE_LINUX+set}" = set ]; then
|
||||||
db_set grub2/linux_cmdline "$GRUB_CMDLINE_LINUX"
|
db_set grub2/linux_cmdline "$GRUB_CMDLINE_LINUX"
|
||||||
|
fi
|
||||||
|
if [ "${GRUB_CMDLINE_LINUX_DEFAULT+set}" = set ]; then
|
||||||
db_set grub2/linux_cmdline_default "$GRUB_CMDLINE_LINUX_DEFAULT"
|
db_set grub2/linux_cmdline_default "$GRUB_CMDLINE_LINUX_DEFAULT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
3
debian/postinst.in
vendored
3
debian/postinst.in
vendored
@ -284,11 +284,10 @@ config_item()
|
|||||||
{
|
{
|
||||||
for x in /etc/default/grub /etc/default/grub.d/*.cfg; do
|
for x in /etc/default/grub /etc/default/grub.d/*.cfg; do
|
||||||
if [ -e "$x" ]; then
|
if [ -e "$x" ]; then
|
||||||
DEFAULT_FOUND="yes"
|
|
||||||
. "$x"
|
. "$x"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "$DEFAULT_FOUND" = "yes" ]; then
|
if [ "$(eval echo "\${$1+set}")" = set ]; then
|
||||||
eval echo "\$$1"
|
eval echo "\$$1"
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user