2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
* util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable. * util/grub-mkconfig_lib.in (save_default_entry): Only save a new default entry if GRUB_SAVEDEFAULT=true. This allows using GRUB_DEFAULT=saved on its own to let grub-reboot work, without saving a new default on every boot.
This commit is contained in:
parent
4a8a763c7b
commit
a0ca21c2d2
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
|
||||||
|
|
||||||
|
* util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
|
||||||
|
* util/grub-mkconfig_lib.in (save_default_entry): Only save a new
|
||||||
|
default entry if GRUB_SAVEDEFAULT=true. This allows using
|
||||||
|
GRUB_DEFAULT=saved on its own to let grub-reboot work, without
|
||||||
|
saving a new default on every boot.
|
||||||
|
|
||||||
2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* normal/crypto.c (read_crypto_list): Fix a memory leak.
|
* normal/crypto.c (read_crypto_list): Fix a memory leak.
|
||||||
|
|
|
@ -223,7 +223,8 @@ export GRUB_DEFAULT \
|
||||||
GRUB_THEME \
|
GRUB_THEME \
|
||||||
GRUB_GFXPAYLOAD_LINUX \
|
GRUB_GFXPAYLOAD_LINUX \
|
||||||
GRUB_DISABLE_OS_PROBER \
|
GRUB_DISABLE_OS_PROBER \
|
||||||
GRUB_INIT_TUNE
|
GRUB_INIT_TUNE \
|
||||||
|
GRUB_SAVEDEFAULT
|
||||||
|
|
||||||
if test "x${grub_cfg}" != "x"; then
|
if test "x${grub_cfg}" != "x"; then
|
||||||
rm -f ${grub_cfg}.new
|
rm -f ${grub_cfg}.new
|
||||||
|
|
|
@ -96,7 +96,7 @@ convert_system_path_to_grub_path ()
|
||||||
|
|
||||||
save_default_entry ()
|
save_default_entry ()
|
||||||
{
|
{
|
||||||
if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then
|
if [ "x${GRUB_SAVEDEFAULT}" = "xtrue" ] ; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
savedefault
|
savedefault
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue