You are not logged in.

#1 2014-02-08 10:09:53

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

[Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

I have used this for years even pre-archlinux.  Recently it has stopped working.

From my /etc/default/grub

GRUB_DEFAULT=saved
....
GRUB_SAVEDEFAULT="true"

From pacman -Qii grub

Version        : 1:2.02.beta2-1
Architecture   : x86_64
Build Date     : Sun 05 Jan 2014 11:07:40 AM PST
Install Date   : Fri 10 Jan 2014 09:00:39 AM PST

/etc/default/grub has not changed except for add/remove GRUB_DISABLE_SUBMENU=y for the bug FS#38234

Am I the only one experiencing this?

Last edited by keepitsimpleengineer (2014-02-27 23:38:38)


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#2 2014-02-08 11:51:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

Why have you posted this in 'Other Architectures' forum section?

Offline

#3 2014-02-08 13:59:16

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

Moving to Kernel & Hardware.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#4 2014-02-08 14:09:03

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

Depending on your configuration it might or might not work since it needs the environment block. http://www.gnu.org/software/grub/manual … ment-block
If you believe it should work, try to compare the output of grub-mkconfig with and without GRUB_SAVEDEFAULT. Maybe you can spot an error in the generated code.

Last edited by progandy (2014-02-08 14:11:17)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2014-02-08 16:27:11

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

karol wrote:

Why have you posted this in 'Other Architectures' forum section?

Inadvertent error.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#6 2014-02-08 16:27:42

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

fsckd wrote:

Moving to Kernel & Hardware.


Thanks


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#7 2014-02-08 20:52:03

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

progandy wrote:

Depending on your configuration it might or might not work since it needs the environment block. http://www.gnu.org/software/grub/manual … ment-block
If you believe it should work, try to compare the output of grub-mkconfig with and without GRUB_SAVEDEFAULT. Maybe you can spot an error in the generated code.

I did the comparison between with & without the saved default and found nothing untoward.

I checked and the grubenv file exists in /boot/grub.  Listing it produced:

--ljohnson{12:07:47}grub]$ grub-editenv grubenv list
saved_entry=osprober-chain-545A36C35A36A1A2

I have no idea what that means, so I ran:

 --ljohnson{12:17:33}grub]$ sudo cat grub.cfg | grep 545A36C35A36A1A2
menuentry 'Windows Vista (loader) (on /dev/sdd1)' --class windows --class os $menuentry_id_option 'osprober-chain-545A36C35A36A1A2' {
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  545A36C35A36A1A2
	  search --no-floppy --fs-uuid --set=root 545A36C35A36A1A2
 

and deduced that it is the saved default for opening Vista.

Now the odd thing is that Vista was opening by default prior to the above noted test and after the test now ArchLinux is opened by default.  This suggests that /boot/grub/grubenv is ignored.

So I will change the load_env and save_env in grub.cfg to force the default grubenv and see what happens.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#8 2014-02-08 21:23:54

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

keepitsimpleengineer wrote:

So I will change the load_env and save_env in grub.cfg to force the default grubenv and see what happens.

After changing /boot/grub/grub.cfg so that load_env is replaced with load_env -f /boot/grub/grubenv and all save_env are changed to save_env -f /boot/grub/grubenv there is no change in behavior.

root@kise-005 grub# pwd
/boot/grub
root@kise-005 grub# ls -lat
total 398
drwxr-xr-x 6 root root  1024 Feb  8 12:48 .
-rw------- 1 root root 58093 Feb  8 12:48 grub.cfg
-rw------- 1 root root 57983 Feb  8 08:54 grub.cfg.without
-rw------- 1 root root 57983 Feb  8 08:54 grub.cfg~
-rw------- 1 root root 58971 Feb  8 08:53 grub.cfg.with
drwxr-xr-x 7 root root  1024 Jan 31 09:34 ..
-rw------- 1 root root 53749 Dec 27 12:47 grub.conf
drwxr-xr-x 2 root root  7168 Sep  7 22:53 i386-pc
drwxr-xr-x 2 root root  1024 Sep  7 22:53 locale
-rw-r--r-- 1 root root  4087 Aug  5  2013 grub.cfg.pacnew
-rw------- 1 root root 45366 Jun 23  2013 grub.cfg.example
-rw------- 1 root root 47614 May 30  2013 grub.cfg.pacsave
drwxr-xr-x 2 root root  1024 Jul 20  2012 fonts
-rw-r--r-- 1 root root  1024 Jul 20  2012 grubenv
drwxr-xr-x 3 root root  1024 Jul 20  2012 themes
--ljohnson{13:00:44}grub]$ grub-editenv grubenv list
saved_entry=osprober-chain-545A36C35A36A1A2

Well, I can live with this but I'm curious as to what is  happening.

modified grub.cfg at http://pastebin.com/VdsupFfn
/ect/default/grub at http://pastebin.com/tqmHKNvv

Last edited by keepitsimpleengineer (2014-02-08 21:38:50)


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#9 2014-02-09 01:19:40

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

Offline

#10 2014-02-09 16:56:41

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

Watching now, thanks.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#11 2014-02-27 23:38:05

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 380

Re: [Solved] GRUB fails to Recall previous entry; GRUB_SAVEDEFAULT="true"

keepitsimpleengineer wrote:

Watching now, thanks.

This bug is now fixed..!


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

Board footer

Powered by FluxBB