[opensuse] Grub 2 question: can I configure a default entry?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere. The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot. In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like: menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi } (thanks to Andrei Borzenkov and others for setting up that idea) So that the menu writes entries to the boot screen (from memory) like these: Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid) etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated). Prior threads: [opensuse] Trying to understand booting GPT disk with BIOS (not UEFI) situation [opensuse] Am I doing this custom grub config correctly? - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAleR5eYACgkQtTMYHG2NR9VDjQCfXry5TvGDZ0NpAiSh5mZVv8Ng 0JcAmQGA/dbrlS/G/JG/vLVlvbOYHRFM =MPuJ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 22 Jul 2016 11:22, Carlos E. R. wrote:
Hi,
I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere.
The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot.
In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like:
menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
(thanks to Andrei Borzenkov and others for setting up that idea)
So that the menu writes entries to the boot screen (from memory) like these:
Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid)
etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated).
Prior threads:
[opensuse] Trying to understand booting GPT disk with BIOS (not UEFI) situation [opensuse] Am I doing this custom grub config correctly?
Oh? Try "man grub2-set-default" and "man grub2-editenv" for info, grub2 stores the "default" in a extra file "/boot/grub2/grubenv" as a entry "saved_entry=xxx" e.g.: "saved_entry=gnulinux-simple-eb139661-114a-432b-bf10-e21244bfa245" To note: for that to function, in the file "/etc/default/grub" the entry "GRUB_DEFAULT=saved" needs to be set, also the entry "GRUB_SAVEDEFAULT=true" is helpfull, which will allow you to automatically save last booted menu entry in GRUB2 environment variable 'saved_entry' If you change "/etc/default/grub", do not forget to re-create "/boot/grub2/grub.cfg" via "grub2-mkconfig -o /boot/grub2/grub.cfg" - Yamaban -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-22 12:01, Yamaban wrote:
On Fri, 22 Jul 2016 11:22, Carlos E. R. wrote:
Oh? Try "man grub2-set-default" and "man grub2-editenv" for info, grub2 stores the "default" in a extra file "/boot/grub2/grubenv" as a entry "saved_entry=xxx" e.g.: "saved_entry=gnulinux-simple-eb139661-114a-432b-bf10-e21244bfa245"
To note: for that to function, in the file "/etc/default/grub" the entry "GRUB_DEFAULT=saved" needs to be set, also the entry "GRUB_SAVEDEFAULT=true" is helpfull, which will allow you to automatically save last booted menu entry in GRUB2 environment variable 'saved_entry'
No, this last thing, which would be ideal, does not work. At least, not if the selected entry is in the "/boot/grub2/custom.cfg" file, which is what I need. -- Cheers / Saludos, Carlos E. R. (from openSUSE Leap 42.1 x86_64 (test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op vrijdag 22 juli 2016 11:22:39 CEST schreef Carlos E. R.:
Hi,
I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere.
The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot.
In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like:
menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
(thanks to Andrei Borzenkov and others for setting up that idea)
So that the menu writes entries to the boot screen (from memory) like these:
Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid)
etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated).
Prior threads:
[opensuse] Trying to understand booting GPT disk with BIOS (not UEFI) situation [opensuse] Am I doing this custom grub config correctly?
-- Cheers
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Yast's bootloader module can do this. It writes the saved_entry variable to / boot/grub2/grubenv -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
22.07.2016 12:22, Carlos E. R. пишет:
Hi,
I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere.
The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot.
In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like:
menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
(thanks to Andrei Borzenkov and others for setting up that idea)
So that the menu writes entries to the boot screen (from memory) like these:
Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid)
etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated).
Assuming you are using grub-mkconfig and not editing grub.cfg manually ... set GRUB_DEFAULT in /etc/default/grub and run grub2-mckconfig. It can be set to entry number, entry title or entry ID. Entry number is the worst - it can change next time grub-mkconfig runs. Entry title is not unique enough, although in your case it may be enough. ID is recommended way to refer to menu entries. Just add --id some-unique-string like menuentry 'Main (with uuid)' --id something-that-is-unique { ... For ID string you can simply use uuidgen which is supposed to return Universally Unique ID. grub-mkconfig scripts usually prefix it with some indication where it comes from (like linux-$uuid or os_prober-$uuid etc). So something like carlos-$uuid would be good :) And do not forget that if you use submenus, you need to define full path, i.e. for submenu "My own menus" --id unique-1 { menuentry "First submenu entry" --id unique-2 { ... } ... } you need to set GRUB_DEFAULT="unique-1>unique-2"
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Assuming you are using grub-mkconfig and not editing grub.cfg manually ...
No, I edit "/boot/grub2/custom.cfg" manually.
set GRUB_DEFAULT in /etc/default/grub and run grub2-mckconfig. It can be set to entry number, entry title or entry ID. Entry number is the worst - it can change next time grub-mkconfig runs. Entry title is not unique enough, although in your case it may be enough. ID is recommended way to refer to menu entries. Just add --id some-unique-string like
menuentry 'Main (with uuid)' --id something-that-is-unique { ...
For ID string you can simply use uuidgen which is supposed to return Universally Unique ID. grub-mkconfig scripts usually prefix it with some indication where it comes from (like linux-$uuid or os_prober-$uuid etc). So something like carlos-$uuid would be good :)
And do not forget that if you use submenus, you need to define full path, i.e. for
submenu "My own menus" --id unique-1 { menuentry "First submenu entry" --id unique-2 { ... } ... }
you need to set
GRUB_DEFAULT="unique-1>unique-2"
I see. This is manually entering in the file the entry that I want to boot by default. I'll try this just now. [...] No, it does not work :-( /etc/default/grub: GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true /boot/grub2/custom.cfg: menuentry 'Main (por uuid)' --id cer-main-001 { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi } By default, it always want to boot the first entry found in "/boot/grub2/grub.cfg", not any of the entries I define in "/boot/grub2/custom.cfg". Those are ignored by this feature. -- Cheers / Saludos, Carlos E. R. (from openSUSE Leap 42.1 x86_64 (test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Assuming you are using grub-mkconfig and not editing grub.cfg manually ...
No, I edit "/boot/grub2/custom.cfg" manually.
Then just use set default=whatever-is-your-default in grub.cfg ...
No, it does not work :-(
/etc/default/grub:
GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
/boot/grub2/custom.cfg:
menuentry 'Main (por uuid)' --id cer-main-001 { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
By default, it always want to boot the first entry found in "/boot/grub2/grub.cfg", not any of the entries I define in "/boot/grub2/custom.cfg". Those are ignored by this feature.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-24 07:10, Andrei Borzenkov wrote:
24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
Ok... then I can not set the default entry of my choice via grub :-( Thank you everybody for your help. -- Cheers / Saludos, Carlos E. R. (from openSUSE Leap 42.1 x86_64 (test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
24.07.2016 14:10, Carlos E. R. пишет:
On 2016-07-24 07:10, Andrei Borzenkov wrote:
24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
Ok... then I can not set the default entry of my choice via grub :-(
Sorry? You trimmed exactly my answer how to do it via grub.
Thank you everybody for your help.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-24 16:33, Andrei Borzenkov wrote:
24.07.2016 14:10, Carlos E. R. пишет:
On 2016-07-24 07:10, Andrei Borzenkov wrote:
24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
Ok... then I can not set the default entry of my choice via grub :-(
Sorry? You trimmed exactly my answer how to do it via grub.
Huh? You mean: |> Then just use |> |> set default=whatever-is-your-default |> |> in grub.cfg But I did that and it did not work, it was ignored. I said: In file "/etc/default/grub" I have: GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true and in file "/boot/grub2/custom.cfg": menuentry 'Main (por uuid)' --id cer-main-001 { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi } The intention is to boot by default an entry in the *custom.cfg* file. And it does not do that. It boots the first entry in "/boot/grub2/grub.cfg". You concurred that this does not work: |> Of course not. This only affects code that is emitted by grub-mkconfig, |> so if you do not use grub-mkconfig, no reason to mess with this file |> (there is currently single exception of encrypted /boot/grub). I don't see what I can do to boot "cer-main-001" by default. It is not in the grub-cf file, it is not touched by grub-mkconfig. If I misunderstood, please explain -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Отправлено с iPhone
24 июля 2016 г., в 20:26, Carlos E. R. <robin.listas@telefonica.net> написал(а):
On 2016-07-24 16:33, Andrei Borzenkov wrote: 24.07.2016 14:10, Carlos E. R. пишет:
On 2016-07-24 07:10, Andrei Borzenkov wrote: 24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
Ok... then I can not set the default entry of my choice via grub :-(
Sorry? You trimmed exactly my answer how to do it via grub.
Huh?
You mean:
|> Then just use |> |> set default=whatever-is-your-default |> |> in grub.cfg
But I did that and it did not work, it was ignored.
I said:
In file "/etc/default/grub" I have:
GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true
If you use grub-mkconfig, you should run it after you changed his file. If you do not use grub-mkconfig, you should put literal "set default=bla-bla" in grub.cfg.
and in file "/boot/grub2/custom.cfg":
If you mention "custom.cfg", if means you do use grub-mkconfig to generate grub.cfg.
menuentry 'Main (por uuid)' --id cer-main-001 { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
The intention is to boot by default an entry in the *custom.cfg* file. And it does not do that. It boots the first entry in "/boot/grub2/grub.cfg".
You concurred that this does not work:
|> Of course not. This only affects code that is emitted by grub-mkconfig, |> so if you do not use grub-mkconfig, no reason to mess with this file |> (there is currently single exception of encrypted /boot/grub).
I don't see what I can do to boot "cer-main-001" by default. It is not in the grub-cf file, it is not touched by grub-mkconfig.
If I misunderstood, please explain
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-24 20:53, Andrei Borzenkov wrote:
Отправлено с iPhone
24 июля 2016 г., в 20:26, Carlos E. R. <robin.listas@telefonica.net> написал(а):
On 2016-07-24 16:33, Andrei Borzenkov wrote: 24.07.2016 14:10, Carlos E. R. пишет:
On 2016-07-24 07:10, Andrei Borzenkov wrote: 24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
Ok... then I can not set the default entry of my choice via grub :-(
Sorry? You trimmed exactly my answer how to do it via grub.
Huh?
You mean:
|> Then just use |> |> set default=whatever-is-your-default |> |> in grub.cfg
But I did that and it did not work, it was ignored.
I said:
In file "/etc/default/grub" I have:
GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true
If you use grub-mkconfig, you should run it after you changed his file. If you do not use grub-mkconfig, you should put literal "set default=bla-bla" in grub.cfg.
I wrote that and I run that command. Boot process ignores it.
and in file "/boot/grub2/custom.cfg":
If you mention "custom.cfg", if means you do use grub-mkconfig to generate grub.cfg.
Yes, but the content of "custom.cfg" doesn't go inside "grub.cfg". I grepped for "id" and was not found. You are perhaps thinking of /etc/grub.d/40_custom, that appears to be inserted at "make" time. It appears that "/boot/grub2/custom.cfg" is interpreted at boot time, via /etc/grub.d/41_custom. Maybe I should use /etc/grub.d/40_custom instead. Does it use the same syntax? Then I could just try moving the entries there. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2016-07-25 05:18, Andrei Borzenkov wrote:
24.07.2016 22:12, Carlos E. R. пишет:
I wrote that and I run that command. Boot process ignores it.
Please show your grub.cfg and custom.cfg
They are attached: /etc/default/grub /boot/grub2/grub.cfg /boot/grub2/custom.cfg If it doesn't make to the list, I'll repeat in-text. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On Mon, Jul 25, 2016 at 1:59 PM, Carlos E. R. <robin.listas@gmail.com> wrote:
On 2016-07-25 05:18, Andrei Borzenkov wrote:
24.07.2016 22:12, Carlos E. R. пишет:
I wrote that and I run that command. Boot process ignores it.
Please show your grub.cfg and custom.cfg
They are attached:
/etc/default/grub /boot/grub2/grub.cfg /boot/grub2/custom.cfg
Something is wrong as you have set default="id" which if course does not work (at least it does not do what you intended). What exact openSUSE version this grub.cfg is from? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-25 13:29, Andrei Borzenkov wrote:
On Mon, Jul 25, 2016 at 1:59 PM, Carlos E. R. <robin.listas@gmail.com> wrote:
On 2016-07-25 05:18, Andrei Borzenkov wrote:
24.07.2016 22:12, Carlos E. R. пишет:
I wrote that and I run that command. Boot process ignores it.
Please show your grub.cfg and custom.cfg
They are attached:
/etc/default/grub /boot/grub2/grub.cfg /boot/grub2/custom.cfg
Something is wrong as you have
set default="id"
which if course does not work (at least it does not do what you intended).
You mean this? f [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry if [ "${env_block}" ] ; then save_env -f "${env_block}" next_entry fi set boot_once=true else set default="id" fi I did not write that. At one time I had: GRUB_DEFAULT=id but then changed it back to GRUB_DEFAULT=cer-main-001 And run "grub2-mkconfig -o /boot/grub2/grub.cfg" after, more than once.
What exact openSUSE version this grub.cfg is from?
Leap 42.1 penSUSE 42.1 (x86_64) VERSION = 42.1 CODENAME = Malachite # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1 (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:42.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse" -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On Mon, Jul 25, 2016 at 2:59 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
I did not write that. At one time I had:
GRUB_DEFAULT=id
but then changed it back to
GRUB_DEFAULT=cer-main-001
And run "grub2-mkconfig -o /boot/grub2/grub.cfg" after, more than once.
run sh -x /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg and send me output (you may want to redirect stderr or run it under script). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-07-25 14:07, Andrei Borzenkov wrote:
On Mon, Jul 25, 2016 at 2:59 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
I did not write that. At one time I had:
GRUB_DEFAULT=id
but then changed it back to
GRUB_DEFAULT=cer-main-001
And run "grub2-mkconfig -o /boot/grub2/grub.cfg" after, more than once.
run
sh -x /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
and send me output (you may want to redirect stderr or run it under script).
(see end of post before examining) Gestor:~ # sh -x /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg + set -e + prefix=/usr + exec_prefix=/usr + datarootdir=/usr/share + prefix=/usr + exec_prefix=/usr + sbindir=/usr/sbin + bindir=/usr/bin + sysconfdir=/etc + PACKAGE_NAME=GRUB2 + PACKAGE_VERSION=2.02~beta2 + host_os=linux-gnu + datadir=/usr/share + '[' x = x ']' + pkgdatadir=/usr/share/grub2 + grub_cfg= + grub_mkconfig_dir=/etc/grub.d ++ basename /usr/sbin/grub2-mkconfig + self=grub2-mkconfig + grub_probe=/usr/sbin/grub2-probe + grub_file=/usr/bin/grub2-file + grub_editenv=/usr/bin/grub2-editenv + grub_script_check=/usr/bin/grub2-script-check + export TEXTDOMAIN=grub2 + TEXTDOMAIN=grub2 + export TEXTDOMAINDIR=/usr/share/locale + TEXTDOMAINDIR=/usr/share/locale + . /usr/share/grub2/grub-mkconfig_lib ++ prefix=/usr ++ exec_prefix=/usr ++ datarootdir=/usr/share ++ datadir=/usr/share ++ bindir=/usr/bin ++ sbindir=/usr/sbin ++ '[' x/usr/share/grub2 = x ']' ++ test x/usr/sbin/grub2-probe = x ++ test x/usr/bin/grub2-file = x ++ test x = x ++ grub_mkrelpath=/usr/bin/grub2-mkrelpath ++ which gettext ++ : ++ grub_tab=' ' + test 2 -gt 0 + option=-o + shift + case "$option" in ++ argument -o /boot/grub2/grub.cfg ++ opt=-o ++ shift ++ test 1 -eq 0 ++ echo /boot/grub2/grub.cfg + grub_cfg=/boot/grub2/grub.cfg + shift + test 0 -gt 0 + '[' x0 = x ']' + '[' 0 '!=' 0 ']' + set /usr/sbin/grub2-probe dummy + test -f /usr/sbin/grub2-probe + : ++ probe_nfsroot_device ++ read line +++ echo 17 36 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:6 - sysfs sysfs rw +++ sed -e 's! - .*$!!' ++ part1='17 36 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:6' +++ echo 17 36 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:6 - sysfs sysfs rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='sysfs sysfs rw' ++ set -- 17 36 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:6 ++ path=/sys ++ set -- sysfs sysfs rw ++ fstype=sysfs ++ device=sysfs ++ '[' x/sys = x/ ']' ++ read line +++ echo 18 36 0:4 / /proc rw,nosuid,nodev,noexec,relatime shared:5 - proc proc rw +++ sed -e 's! - .*$!!' ++ part1='18 36 0:4 / /proc rw,nosuid,nodev,noexec,relatime shared:5' +++ echo 18 36 0:4 / /proc rw,nosuid,nodev,noexec,relatime shared:5 - proc proc rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='proc proc rw' ++ set -- 18 36 0:4 / /proc rw,nosuid,nodev,noexec,relatime shared:5 ++ path=/proc ++ set -- proc proc rw ++ fstype=proc ++ device=proc ++ '[' x/proc = x/ ']' ++ read line +++ echo 19 36 0:6 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs rw,size=4082684k,nr_inodes=1020671,mode=755 +++ sed -e 's! - .*$!!' ++ part1='19 36 0:6 / /dev rw,nosuid shared:2' +++ echo 19 36 0:6 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs rw,size=4082684k,nr_inodes=1020671,mode=755 +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='devtmpfs devtmpfs rw,size=4082684k,nr_inodes=1020671,mode=755' ++ set -- 19 36 0:6 / /dev rw,nosuid shared:2 ++ path=/dev ++ set -- devtmpfs devtmpfs rw,size=4082684k,nr_inodes=1020671,mode=755 ++ fstype=devtmpfs ++ device=devtmpfs ++ '[' x/dev = x/ ']' ++ read line +++ echo 20 17 0:12 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7 - securityfs securityfs rw +++ sed -e 's! - .*$!!' ++ part1='20 17 0:12 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7' +++ echo 20 17 0:12 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7 - securityfs securityfs rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='securityfs securityfs rw' ++ set -- 20 17 0:12 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7 ++ path=/sys/kernel/security ++ set -- securityfs securityfs rw ++ fstype=securityfs ++ device=securityfs ++ '[' x/sys/kernel/security = x/ ']' ++ read line +++ echo 21 19 0:18 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw +++ sed -e 's! - .*$!!' ++ part1='21 19 0:18 / /dev/shm rw,nosuid,nodev shared:3' +++ echo 21 19 0:18 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='tmpfs tmpfs rw' ++ set -- 21 19 0:18 / /dev/shm rw,nosuid,nodev shared:3 ++ path=/dev/shm ++ set -- tmpfs tmpfs rw ++ fstype=tmpfs ++ device=tmpfs ++ '[' x/dev/shm = x/ ']' ++ read line +++ echo 22 19 0:14 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000 +++ sed -e 's! - .*$!!' ++ part1='22 19 0:14 / /dev/pts rw,nosuid,noexec,relatime shared:4' +++ echo 22 19 0:14 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000 +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='devpts devpts rw,gid=5,mode=620,ptmxmode=000' ++ set -- 22 19 0:14 / /dev/pts rw,nosuid,noexec,relatime shared:4 ++ path=/dev/pts ++ set -- devpts devpts rw,gid=5,mode=620,ptmxmode=000 ++ fstype=devpts ++ device=devpts ++ '[' x/dev/pts = x/ ']' ++ read line +++ echo 23 36 0:19 / /run rw,nosuid,nodev shared:20 - tmpfs tmpfs rw,mode=755 +++ sed -e 's! - .*$!!' ++ part1='23 36 0:19 / /run rw,nosuid,nodev shared:20' +++ echo 23 36 0:19 / /run rw,nosuid,nodev shared:20 - tmpfs tmpfs rw,mode=755 +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='tmpfs tmpfs rw,mode=755' ++ set -- 23 36 0:19 / /run rw,nosuid,nodev shared:20 ++ path=/run ++ set -- tmpfs tmpfs rw,mode=755 ++ fstype=tmpfs ++ device=tmpfs ++ '[' x/run = x/ ']' ++ read line +++ echo 24 17 0:20 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:8 - tmpfs tmpfs rw,mode=755 +++ sed -e 's! - .*$!!' ++ part1='24 17 0:20 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:8' +++ echo 24 17 0:20 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:8 - tmpfs tmpfs rw,mode=755 +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='tmpfs tmpfs rw,mode=755' ++ set -- 24 17 0:20 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:8 ++ path=/sys/fs/cgroup ++ set -- tmpfs tmpfs rw,mode=755 ++ fstype=tmpfs ++ device=tmpfs ++ '[' x/sys/fs/cgroup = x/ ']' ++ read line +++ echo 25 24 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd +++ sed -e 's! - .*$!!' ++ part1='25 24 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9' +++ echo 25 24 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd' ++ set -- 25 24 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9 ++ path=/sys/fs/cgroup/systemd ++ set -- cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/systemd = x/ ']' ++ read line +++ echo 26 17 0:22 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:19 - pstore pstore rw +++ sed -e 's! - .*$!!' ++ part1='26 17 0:22 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:19' +++ echo 26 17 0:22 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:19 - pstore pstore rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='pstore pstore rw' ++ set -- 26 17 0:22 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:19 ++ path=/sys/fs/pstore ++ set -- pstore pstore rw ++ fstype=pstore ++ device=pstore ++ '[' x/sys/fs/pstore = x/ ']' ++ read line +++ echo 27 24 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:10 - cgroup cgroup rw,cpuset +++ sed -e 's! - .*$!!' ++ part1='27 24 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:10' +++ echo 27 24 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:10 - cgroup cgroup rw,cpuset +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,cpuset' ++ set -- 27 24 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:10 ++ path=/sys/fs/cgroup/cpuset ++ set -- cgroup cgroup rw,cpuset ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/cpuset = x/ ']' ++ read line +++ echo 28 24 0:24 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:11 - cgroup cgroup rw,cpu,cpuacct +++ sed -e 's! - .*$!!' ++ part1='28 24 0:24 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:11' +++ echo 28 24 0:24 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:11 - cgroup cgroup rw,cpu,cpuacct +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,cpu,cpuacct' ++ set -- 28 24 0:24 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:11 ++ path=/sys/fs/cgroup/cpu,cpuacct ++ set -- cgroup cgroup rw,cpu,cpuacct ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/cpu,cpuacct = x/ ']' ++ read line +++ echo 29 24 0:25 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:12 - cgroup cgroup rw,blkio +++ sed -e 's! - .*$!!' ++ part1='29 24 0:25 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:12' +++ echo 29 24 0:25 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:12 - cgroup cgroup rw,blkio +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,blkio' ++ set -- 29 24 0:25 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:12 ++ path=/sys/fs/cgroup/blkio ++ set -- cgroup cgroup rw,blkio ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/blkio = x/ ']' ++ read line +++ echo 30 24 0:26 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:13 - cgroup cgroup rw,memory +++ sed -e 's! - .*$!!' ++ part1='30 24 0:26 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:13' +++ echo 30 24 0:26 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:13 - cgroup cgroup rw,memory +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,memory' ++ set -- 30 24 0:26 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:13 ++ path=/sys/fs/cgroup/memory ++ set -- cgroup cgroup rw,memory ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/memory = x/ ']' ++ read line +++ echo 31 24 0:27 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14 - cgroup cgroup rw,devices +++ sed -e 's! - .*$!!' ++ part1='31 24 0:27 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14' +++ echo 31 24 0:27 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14 - cgroup cgroup rw,devices +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,devices' ++ set -- 31 24 0:27 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14 ++ path=/sys/fs/cgroup/devices ++ set -- cgroup cgroup rw,devices ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/devices = x/ ']' ++ read line +++ echo 32 24 0:28 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,freezer +++ sed -e 's! - .*$!!' ++ part1='32 24 0:28 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:15' +++ echo 32 24 0:28 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,freezer +++ sed 1d +++ sed -n -e 's! - \(.*\)$!\n\1!p' ++ part2='cgroup cgroup rw,freezer' ++ set -- 32 24 0:28 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:15 ++ path=/sys/fs/cgroup/freezer ++ set -- cgroup cgroup rw,freezer ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/freezer = x/ ']' ++ read line +++ echo 33 24 0:29 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,net_cls,net_prio +++ sed -e 's! - .*$!!' ++ part1='33 24 0:29 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16' +++ echo 33 24 0:29 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,net_cls,net_prio +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,net_cls,net_prio' ++ set -- 33 24 0:29 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16 ++ path=/sys/fs/cgroup/net_cls,net_prio ++ set -- cgroup cgroup rw,net_cls,net_prio ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/net_cls,net_prio = x/ ']' ++ read line +++ echo 34 24 0:30 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:17 - cgroup cgroup rw,perf_event +++ sed -e 's! - .*$!!' ++ part1='34 24 0:30 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:17' +++ echo 34 24 0:30 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:17 - cgroup cgroup rw,perf_event +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,perf_event' ++ set -- 34 24 0:30 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:17 ++ path=/sys/fs/cgroup/perf_event ++ set -- cgroup cgroup rw,perf_event ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/perf_event = x/ ']' ++ read line +++ echo 35 24 0:31 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,hugetlb +++ sed -e 's! - .*$!!' ++ part1='35 24 0:31 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:18' +++ echo 35 24 0:31 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,hugetlb +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='cgroup cgroup rw,hugetlb' ++ set -- 35 24 0:31 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:18 ++ path=/sys/fs/cgroup/hugetlb ++ set -- cgroup cgroup rw,hugetlb ++ fstype=cgroup ++ device=cgroup ++ '[' x/sys/fs/cgroup/hugetlb = x/ ']' ++ read line +++ echo 36 0 8:2 / / rw,relatime shared:1 - ext4 /dev/sda2 rw,data=ordered +++ sed -e 's! - .*$!!' ++ part1='36 0 8:2 / / rw,relatime shared:1' +++ echo 36 0 8:2 / / rw,relatime shared:1 - ext4 /dev/sda2 rw,data=ordered +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='ext4 /dev/sda2 rw,data=ordered' ++ set -- 36 0 8:2 / / rw,relatime shared:1 ++ path=/ ++ set -- ext4 /dev/sda2 rw,data=ordered ++ fstype=ext4 ++ device=/dev/sda2 ++ '[' x/ = x/ ']' ++ '[' xext4 = xnfs -o xext4 = xnfs4 ']' ++ read line +++ echo 37 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:21 - autofs systemd-1 rw,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct +++ sed -e 's! - .*$!!' ++ part1='37 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:21' +++ echo 37 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:21 - autofs systemd-1 rw,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='autofs systemd-1 rw,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct' ++ set -- 37 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:21 ++ path=/proc/sys/fs/binfmt_misc ++ set -- autofs systemd-1 rw,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct ++ fstype=autofs ++ device=systemd-1 ++ '[' x/proc/sys/fs/binfmt_misc = x/ ']' ++ read line +++ echo 38 17 0:7 / /sys/kernel/debug rw,relatime shared:22 - debugfs debugfs rw +++ sed -e 's! - .*$!!' ++ part1='38 17 0:7 / /sys/kernel/debug rw,relatime shared:22' +++ echo 38 17 0:7 / /sys/kernel/debug rw,relatime shared:22 - debugfs debugfs rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='debugfs debugfs rw' ++ set -- 38 17 0:7 / /sys/kernel/debug rw,relatime shared:22 ++ path=/sys/kernel/debug ++ set -- debugfs debugfs rw ++ fstype=debugfs ++ device=debugfs ++ '[' x/sys/kernel/debug = x/ ']' ++ read line +++ echo 39 19 0:33 / /dev/hugepages rw,relatime shared:23 - hugetlbfs hugetlbfs rw +++ sed -e 's! - .*$!!' ++ part1='39 19 0:33 / /dev/hugepages rw,relatime shared:23' +++ echo 39 19 0:33 / /dev/hugepages rw,relatime shared:23 - hugetlbfs hugetlbfs rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='hugetlbfs hugetlbfs rw' ++ set -- 39 19 0:33 / /dev/hugepages rw,relatime shared:23 ++ path=/dev/hugepages ++ set -- hugetlbfs hugetlbfs rw ++ fstype=hugetlbfs ++ device=hugetlbfs ++ '[' x/dev/hugepages = x/ ']' ++ read line +++ echo 40 19 0:16 / /dev/mqueue rw,relatime shared:24 - mqueue mqueue rw +++ sed -e 's! - .*$!!' ++ part1='40 19 0:16 / /dev/mqueue rw,relatime shared:24' +++ echo 40 19 0:16 / /dev/mqueue rw,relatime shared:24 - mqueue mqueue rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='mqueue mqueue rw' ++ set -- 40 19 0:16 / /dev/mqueue rw,relatime shared:24 ++ path=/dev/mqueue ++ set -- mqueue mqueue rw ++ fstype=mqueue ++ device=mqueue ++ '[' x/dev/mqueue = x/ ']' ++ read line +++ echo 42 36 8:50 / /data/storage_d rw,relatime shared:25 - xfs /dev/sdd2 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='42 36 8:50 / /data/storage_d rw,relatime shared:25' +++ echo 42 36 8:50 / /data/storage_d rw,relatime shared:25 - xfs /dev/sdd2 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sdd2 rw,attr2,inode64,noquota' ++ set -- 42 36 8:50 / /data/storage_d rw,relatime shared:25 ++ path=/data/storage_d ++ set -- xfs /dev/sdd2 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sdd2 ++ '[' x/data/storage_d = x/ ']' ++ read line +++ echo 43 36 259:0 / /data/storage_c rw,relatime shared:26 - xfs /dev/sdc16 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='43 36 259:0 / /data/storage_c rw,relatime shared:26' +++ echo 43 36 259:0 / /data/storage_c rw,relatime shared:26 - xfs /dev/sdc16 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sdc16 rw,attr2,inode64,noquota' ++ set -- 43 36 259:0 / /data/storage_c rw,relatime shared:26 ++ path=/data/storage_c ++ set -- xfs /dev/sdc16 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sdc16 ++ '[' x/data/storage_c = x/ ']' ++ read line +++ echo 44 36 8:27 / /data/storage_b rw,relatime shared:27 - reiserfs /dev/sdb11 rw,user_xattr,acl +++ sed -e 's! - .*$!!' ++ part1='44 36 8:27 / /data/storage_b rw,relatime shared:27' +++ echo 44 36 8:27 / /data/storage_b rw,relatime shared:27 - reiserfs /dev/sdb11 rw,user_xattr,acl +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='reiserfs /dev/sdb11 rw,user_xattr,acl' ++ set -- 44 36 8:27 / /data/storage_b rw,relatime shared:27 ++ path=/data/storage_b ++ set -- reiserfs /dev/sdb11 rw,user_xattr,acl ++ fstype=reiserfs ++ device=/dev/sdb11 ++ '[' x/data/storage_b = x/ ']' ++ read line +++ echo 45 36 8:8 / /other/main rw,relatime shared:28 - ext4 /dev/sda8 rw,data=ordered +++ sed -e 's! - .*$!!' ++ part1='45 36 8:8 / /other/main rw,relatime shared:28' +++ echo 45 36 8:8 / /other/main rw,relatime shared:28 - ext4 /dev/sda8 rw,data=ordered +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='ext4 /dev/sda8 rw,data=ordered' ++ set -- 45 36 8:8 / /other/main rw,relatime shared:28 ++ path=/other/main ++ set -- ext4 /dev/sda8 rw,data=ordered ++ fstype=ext4 ++ device=/dev/sda8 ++ '[' x/other/main = x/ ']' ++ read line +++ echo 49 45 8:40 / /other/main/home1 rw,relatime shared:29 - xfs /dev/sdc8 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='49 45 8:40 / /other/main/home1 rw,relatime shared:29' +++ echo 49 45 8:40 / /other/main/home1 rw,relatime shared:29 - xfs /dev/sdc8 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sdc8 rw,attr2,inode64,noquota' ++ set -- 49 45 8:40 / /other/main/home1 rw,relatime shared:29 ++ path=/other/main/home1 ++ set -- xfs /dev/sdc8 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sdc8 ++ '[' x/other/main/home1 = x/ ']' ++ read line +++ echo 51 45 259:1 / /other/main/home rw,relatime shared:30 - ext4 /dev/sdc17 rw,data=ordered +++ sed -e 's! - .*$!!' ++ part1='51 45 259:1 / /other/main/home rw,relatime shared:30' +++ echo 51 45 259:1 / /other/main/home rw,relatime shared:30 - ext4 /dev/sdc17 rw,data=ordered +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='ext4 /dev/sdc17 rw,data=ordered' ++ set -- 51 45 259:1 / /other/main/home rw,relatime shared:30 ++ path=/other/main/home ++ set -- ext4 /dev/sdc17 rw,data=ordered ++ fstype=ext4 ++ device=/dev/sdc17 ++ '[' x/other/main/home = x/ ']' ++ read line +++ echo 50 45 8:37 / /other/main/home_aux rw,relatime shared:31 - xfs /dev/sdc5 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='50 45 8:37 / /other/main/home_aux rw,relatime shared:31' +++ echo 50 45 8:37 / /other/main/home_aux rw,relatime shared:31 - xfs /dev/sdc5 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sdc5 rw,attr2,inode64,noquota' ++ set -- 50 45 8:37 / /other/main/home_aux rw,relatime shared:31 ++ path=/other/main/home_aux ++ set -- xfs /dev/sdc5 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sdc5 ++ '[' x/other/main/home_aux = x/ ']' ++ read line +++ echo 52 45 8:5 / /other/main/boot rw,relatime shared:32 - ext2 /dev/sda5 rw +++ sed -e 's! - .*$!!' ++ part1='52 45 8:5 / /other/main/boot rw,relatime shared:32' +++ echo 52 45 8:5 / /other/main/boot rw,relatime shared:32 - ext2 /dev/sda5 rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='ext2 /dev/sda5 rw' ++ set -- 52 45 8:5 / /other/main/boot rw,relatime shared:32 ++ path=/other/main/boot ++ set -- ext2 /dev/sda5 rw ++ fstype=ext2 ++ device=/dev/sda5 ++ '[' x/other/main/boot = x/ ']' ++ read line +++ echo 47 36 8:12 / /data/vmware rw,relatime shared:33 - xfs /dev/sda12 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='47 36 8:12 / /data/vmware rw,relatime shared:33' +++ echo 47 36 8:12 / /data/vmware rw,relatime shared:33 - xfs /dev/sda12 rw,attr2,inode64,noquota +++ sed 1d +++ sed -n -e 's! - \(.*\)$!\n\1!p' ++ part2='xfs /dev/sda12 rw,attr2,inode64,noquota' ++ set -- 47 36 8:12 / /data/vmware rw,relatime shared:33 ++ path=/data/vmware ++ set -- xfs /dev/sda12 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sda12 ++ '[' x/data/vmware = x/ ']' ++ read line +++ echo 46 36 8:13 / /data/storage_a rw,relatime shared:34 - xfs /dev/sda13 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='46 36 8:13 / /data/storage_a rw,relatime shared:34' +++ echo 46 36 8:13 / /data/storage_a rw,relatime shared:34 - xfs /dev/sda13 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sda13 rw,attr2,inode64,noquota' ++ set -- 46 36 8:13 / /data/storage_a rw,relatime shared:34 ++ path=/data/storage_a ++ set -- xfs /dev/sda13 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sda13 ++ '[' x/data/storage_a = x/ ']' ++ read line +++ echo 48 45 8:24 / /other/main/usr rw,relatime shared:35 - xfs /dev/sdb8 rw,attr2,inode64,noquota +++ sed -e 's! - .*$!!' ++ part1='48 45 8:24 / /other/main/usr rw,relatime shared:35' +++ echo 48 45 8:24 / /other/main/usr rw,relatime shared:35 - xfs /dev/sdb8 rw,attr2,inode64,noquota +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='xfs /dev/sdb8 rw,attr2,inode64,noquota' ++ set -- 48 45 8:24 / /other/main/usr rw,relatime shared:35 ++ path=/other/main/usr ++ set -- xfs /dev/sdb8 rw,attr2,inode64,noquota ++ fstype=xfs ++ device=/dev/sdb8 ++ '[' x/other/main/usr = x/ ']' ++ read line +++ echo 53 48 8:39 / /other/main/usr/local rw,relatime shared:36 - reiserfs /dev/sdc7 rw,user_xattr,acl +++ sed -e 's! - .*$!!' ++ part1='53 48 8:39 / /other/main/usr/local rw,relatime shared:36' +++ echo 53 48 8:39 / /other/main/usr/local rw,relatime shared:36 - reiserfs /dev/sdc7 rw,user_xattr,acl +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='reiserfs /dev/sdc7 rw,user_xattr,acl' ++ set -- 53 48 8:39 / /other/main/usr/local rw,relatime shared:36 ++ path=/other/main/usr/local ++ set -- reiserfs /dev/sdc7 rw,user_xattr,acl ++ fstype=reiserfs ++ device=/dev/sdc7 ++ '[' x/other/main/usr/local = x/ ']' ++ read line +++ echo 54 48 8:38 / /other/main/usr/src rw,relatime shared:37 - reiserfs /dev/sdc6 rw,user_xattr,acl +++ sed -e 's! - .*$!!' ++ part1='54 48 8:38 / /other/main/usr/src rw,relatime shared:37' +++ echo 54 48 8:38 / /other/main/usr/src rw,relatime shared:37 - reiserfs /dev/sdc6 rw,user_xattr,acl +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='reiserfs /dev/sdc6 rw,user_xattr,acl' ++ set -- 54 48 8:38 / /other/main/usr/src rw,relatime shared:37 ++ path=/other/main/usr/src ++ set -- reiserfs /dev/sdc6 rw,user_xattr,acl ++ fstype=reiserfs ++ device=/dev/sdc6 ++ '[' x/other/main/usr/src = x/ ']' ++ read line +++ echo 135 23 0:35 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:116 - fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=100 +++ sed -e 's! - .*$!!' ++ part1='135 23 0:35 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:116' +++ echo 135 23 0:35 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:116 - fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=100 +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=100' ++ set -- 135 23 0:35 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:116 ++ path=/run/user/1000/gvfs ++ set -- fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=100 ++ fstype=fuse.gvfsd-fuse ++ device=gvfsd-fuse ++ '[' x/run/user/1000/gvfs = x/ ']' ++ read line +++ echo 138 17 0:36 / /sys/fs/fuse/connections rw,relatime shared:119 - fusectl fusectl rw +++ sed -e 's! - .*$!!' ++ part1='138 17 0:36 / /sys/fs/fuse/connections rw,relatime shared:119' +++ echo 138 17 0:36 / /sys/fs/fuse/connections rw,relatime shared:119 - fusectl fusectl rw +++ sed -n -e 's! - \(.*\)$!\n\1!p' +++ sed 1d ++ part2='fusectl fusectl rw' ++ set -- 138 17 0:36 / /sys/fs/fuse/connections rw,relatime shared:119 ++ path=/sys/fs/fuse/connections ++ set -- fusectl fusectl rw ++ fstype=fusectl ++ device=fusectl ++ '[' x/sys/fs/fuse/connections = x/ ']' ++ read line + NFSROOT_DEVICE= + '[' x '!=' x ']' ++ /usr/sbin/grub2-probe --target=device / + GRUB_DEVICE=/dev/sda2 ++ /usr/sbin/grub2-probe --device /dev/sda2 --target=fs_uuid + GRUB_DEVICE_UUID=943d650b-ea9c-4fbd-9d2c-993abae7655b + '[' x = x ']' ++ stat -f --printf=%T / + GRUB_FS=ext2/ext3 ++ /usr/sbin/grub2-probe --target=device /boot + GRUB_DEVICE_BOOT=/dev/sda2 ++ /usr/sbin/grub2-probe --device /dev/sda2 --target=fs_uuid + GRUB_DEVICE_BOOT_UUID=943d650b-ea9c-4fbd-9d2c-993abae7655b + test -f /etc/default/grub + . /etc/default/grub ++ GRUB_DISTRIBUTOR= ++ GRUB_DEFAULT=cer-main-001 ++ GRUB_SAVEDEFAULT=true ++ GRUB_HIDDEN_TIMEOUT=0 ++ GRUB_HIDDEN_TIMEOUT_QUIET=true ++ GRUB_TIMEOUT=8 ++ GRUB_CMDLINE_LINUX_DEFAULT='resume=/dev/disk/by-label/Swap_0 splash=verbose console=tty1 showopts' ++ GRUB_CMDLINE_LINUX_RECOVERY=single ++ GRUB_CMDLINE_LINUX= ++ GRUB_TERMINAL=gfxterm ++ GRUB_GFXMODE=auto ++ GRUB_DISABLE_RECOVERY=true ++ GRUB_DISABLE_OS_PROBER=true ++ GRUB_ENABLE_CRYPTODISK=n ++ SUSE_BTRFS_SNAPSHOT_BOOTING=true ++ GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png ++ GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt + '[' xgfxterm '!=' x ']' + '[' xgfxterm '!=' xgfxterm ']' + GRUB_TERMINAL_OUTPUT=gfxterm + termoutdefault=0 + '[' xgfxterm = x ']' + for x in '${GRUB_TERMINAL_OUTPUT}' + case "x${x}" in + GRUB_ACTUAL_DEFAULT=cer-main-001 + '[' xcer-main-001 = xsaved ']' + '[' x = x ']' + '[' -f /etc/os-release ']' + . /etc/os-release ++ NAME='openSUSE Leap' ++ VERSION=42.1 ++ VERSION_ID=42.1 ++ PRETTY_NAME='openSUSE Leap 42.1 (x86_64)' ++ ID=opensuse ++ ANSI_COLOR='0;32' ++ CPE_NAME=cpe:/o:opensuse:opensuse:42.1 ++ BUG_REPORT_URL=https://bugs.opensuse.org ++ HOME_URL=https://opensuse.org/ ++ ID_LIKE=suse + GRUB_DISTRIBUTOR='openSUSE Leap 42.1' + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT GRUB_PRELOAD_MODULES GRUB_ACTUAL_DEFAULT + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_TIMEOUT_STYLE GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON GRUB_TIMEOUT_BUTTON GRUB_TIMEOUT_STYLE_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_BUTTON_CMOS_CLEAN GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_LINUX_XEN_REPLACE GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT GRUB_CMDLINE_GNUMACH GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_ENABLE_CRYPTODISK GRUB_BADRAM GRUB_OS_PROBER_SKIP_LIST GRUB_DISABLE_SUBMENU GRUB_CMDLINE_LINUX_RECOVERY GRUB_USE_LINUXEFI SUSE_BTRFS_SNAPSHOT_BOOTING SUSE_CMDLINE_XENEFI + test x/boot/grub2/grub.cfg '!=' x + rm -f /boot/grub2/grub.cfg.new ++ umask + oldumask=0022 + umask 077 + exec + umask 0022 + gettext 'Generating grub configuration file ...' Generating grub configuration file ...+ echo + cat + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/00_header + test -f /etc/grub.d/00_header + case "$1" in + return 0 + test -x /etc/grub.d/00_header + echo + echo '### BEGIN /etc/grub.d/00_header ###' + /etc/grub.d/00_header Found theme: /boot/grub2/themes/openSUSE/theme.txt + echo '### END /etc/grub.d/00_header ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/00_tuned + test -f /etc/grub.d/00_tuned + case "$1" in + return 0 + test -x /etc/grub.d/00_tuned + echo + echo '### BEGIN /etc/grub.d/00_tuned ###' + /etc/grub.d/00_tuned + echo '### END /etc/grub.d/00_tuned ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/10_linux + test -f /etc/grub.d/10_linux + case "$1" in + return 0 + test -x /etc/grub.d/10_linux + echo + echo '### BEGIN /etc/grub.d/10_linux ###' + /etc/grub.d/10_linux Found linux image: /boot/vmlinuz-4.1.27-24-default Found initrd image: /boot/initrd-4.1.27-24-default Found linux image: /boot/vmlinuz-4.1.15-8-default Found initrd image: /boot/initrd-4.1.15-8-default + echo '### END /etc/grub.d/10_linux ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/20_linux_xen + test -f /etc/grub.d/20_linux_xen + case "$1" in + return 0 + test -x /etc/grub.d/20_linux_xen + echo + echo '### BEGIN /etc/grub.d/20_linux_xen ###' + /etc/grub.d/20_linux_xen + echo '### END /etc/grub.d/20_linux_xen ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/20_memtest86+ + test -f /etc/grub.d/20_memtest86+ + case "$1" in + return 0 + test -x /etc/grub.d/20_memtest86+ + echo + echo '### BEGIN /etc/grub.d/20_memtest86+ ###' + /etc/grub.d/20_memtest86+ + echo '### END /etc/grub.d/20_memtest86+ ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/30_os-prober + test -f /etc/grub.d/30_os-prober + case "$1" in + return 0 + test -x /etc/grub.d/30_os-prober + echo + echo '### BEGIN /etc/grub.d/30_os-prober ###' + /etc/grub.d/30_os-prober + echo '### END /etc/grub.d/30_os-prober ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/40_custom + test -f /etc/grub.d/40_custom + case "$1" in + return 0 + test -x /etc/grub.d/40_custom + echo + echo '### BEGIN /etc/grub.d/40_custom ###' + /etc/grub.d/40_custom + echo '### END /etc/grub.d/40_custom ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/41_custom + test -f /etc/grub.d/41_custom + case "$1" in + return 0 + test -x /etc/grub.d/41_custom + echo + echo '### BEGIN /etc/grub.d/41_custom ###' + /etc/grub.d/41_custom + echo '### END /etc/grub.d/41_custom ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/80_suse_btrfs_snapshot + test -f /etc/grub.d/80_suse_btrfs_snapshot + case "$1" in + return 0 + test -x /etc/grub.d/80_suse_btrfs_snapshot + echo + echo '### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###' + /etc/grub.d/80_suse_btrfs_snapshot + echo '### END /etc/grub.d/80_suse_btrfs_snapshot ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/90_persistent + test -f /etc/grub.d/90_persistent + case "$1" in + return 0 + test -x /etc/grub.d/90_persistent + echo + echo '### BEGIN /etc/grub.d/90_persistent ###' + /etc/grub.d/90_persistent + echo '### END /etc/grub.d/90_persistent ###' + for i in '"${grub_mkconfig_dir}"/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/README + test -f /etc/grub.d/README + case "$1" in + return 1 + test x/boot/grub2/grub.cfg '!=' x + /usr/bin/grub2-script-check /boot/grub2/grub.cfg.new + mv -f /boot/grub2/grub.cfg.new /boot/grub2/grub.cfg + gettext done done+ echo Gestor:~ # Now I see: if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry if [ "${env_block}" ] ; then save_env -f "${env_block}" next_entry fi set boot_once=true else set default="cer-main-001" fi I'll reboot to try. [...] Well, this time it took hold, it is booting the entry I want. :-O I'm bewildered. Obviously I did not issue the command correctly. -- Cheers / Saludos, Carlos E. R. (from openSUSE Leap 42.1 x86_64 (test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
Carlos E. R.
-
Knurpht - Gertjan Lettink
-
Yamaban