Bug 4767 - Can´t update Grub2 config on ROSA Fresh R4
: Can´t update Grub2 config on ROSA Fresh R4
Status: RESOLVED INVALID
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: unspecified
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-04 01:44 MSK by Eugene Budanov
Modified: 2014-12-10 22:47 MSK (History)
1 user (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments
grub2.cfg (10.01 KB, application/octet-stream)
2014-12-09 22:58 MSK, Eugene Budanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Budanov 2014-12-04 01:44:12 MSK
Description of problem:
According Errata, I try to edit /etc/default/grub for fixing problem with Samsung-N100 Netbook. I add acpi_backlight=vendor line in GRUB_CMDLINE_LINUX_DEFAULT and do update-grub2.

See result below:
[root@netbook ~]# update-grub2
Generating grub.cfg ...
Found theme: /boot/grub2/themes/rosa/theme.txt
Found background: /boot/grub2/themes/rosa/terminal_background.png
Found linux image: /boot/vmlinuz-3.14.25-nrj-desktop-1rosa
Found initrd image: /boot/initrd-3.14.25-nrj-desktop-1rosa.img
Found linux image: /boot/vmlinuz-3.14.22-nrj-desktop-3rosa
Found initrd image: /boot/initrd-3.14.22-nrj-desktop-3rosa.img
Found linux image: /boot/vmlinuz-3.14.25-nrj-desktop-1rosa
Found initrd image: /boot/initrd-3.14.25-nrj-desktop-1rosa.img
Found linux image: /boot/vmlinuz-3.14.22-nrj-desktop-3rosa
Found initrd image: /boot/initrd-3.14.22-nrj-desktop-3rosa.img
ERROR: isw: wrong number of devices in RAID set "isw_ddehihagab_Volume0" [1/2] on /dev/sda
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 193
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub2/grub.cfg.new file attached.done

Same problem when using grub-customizer.
Comment 1 Konstantin Vlasov 2014-12-04 02:30:35 MSK
Please, specify the version of your grub2 and post here the resultant contents of /etc/default/grub.
Comment 2 Eugene Budanov 2014-12-04 10:39:13 MSK
(In reply to comment #1)
> Please, specify the version of your grub2 and post here the resultant
> contents of /etc/default/grub.

[roger@netbook ~]$ rpm -qa | grep grub
grub2-theme-rosa-2.00-52-rosa2014.1.noarch
grub-efi-0.97-102-rosa2014.1.i586
grub-customizer-4.0.6-4-rosa2014.1.i586
grub2-2.00-63-rosa2014.1.i586

/etc/default/grub:

GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub2/themes/rosa/theme.txt"
GRUB_DISTRIBUTOR="ROSA"
GRUB_BACKGROUND="/boot/grub2/themes/rosa/terminal_background.png"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_DISABLE_LINUX_UUID="false"
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent logo.nologo acpi_backlight=vendor"
GRUB_SAVEDEFAULT="true"
GRUB_GFXMODE="1024x768,1024x600,800x600,640x480"
GRUB_TIMEOUT="5"
GRUB_DEFAULT="saved"
GRUB_DISABLE_OS_PROBER="false"
Comment 3 Konstantin Vlasov 2014-12-08 22:54:43 MSK
Unfortunately, I don't see how this change could lead to such problems.
1. What happens if you remove that parameter and update the grub config? I expect that it will continue to fail.
2. Did you have successful update-grub2 runs earlier? If yes - could you, please, downgrade grub2 to version 2.00-60 (from main/release/) and check it?
3. What are your disk, RAID and partition configurations?
4. Please, attach the file /boot/grub2/grub.cfg.new.
Comment 4 Eugene Budanov 2014-12-09 22:58:53 MSK
Created attachment 3566 [details]
grub2.cfg
Comment 5 Eugene Budanov 2014-12-09 22:59:27 MSK
(In reply to comment #3)
> Unfortunately, I don't see how this change could lead to such problems.
> 1. What happens if you remove that parameter and update the grub config? I
> expect that it will continue to fail.
Yes, it failed again.

> 2. Did you have successful update-grub2 runs earlier? If yes - could you,
I guess yes. I updated ROSA Fresh R4 to latest version. 
> please, downgrade grub2 to version 2.00-60 (from main/release/) and check it?
After uninstallation of grub2 and installing it again from chrooted (and not chrooted too) system I receive same error.

Reinstalling grub2 to release version from /main repo do not solve problem with grub.
> 3. What are your disk, RAID and partition configurations?
System and /home directory installed on single SSD drive. See fstab -l output:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 59.7 GiB, 64105742336 bytes, 125206528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4c26a1ba

Device    Boot     Start       End   Blocks  Id System
/dev/sda1 *         2048 116374859 58186406  83 Linux
/dev/sda2      116377569 125194544  4408488   5 Extended
/dev/sda5      116377600 125194544  4408472+ 82 Linux swap / Solaris

> 4. Please, attach the file /boot/grub2/grub.cfg.new.
Attached.
Comment 6 Konstantin Vlasov 2014-12-10 02:59:00 MSK
You have the following additional files in your /etc/grub.d/ directory:
43_rescue_proxy
45_linux_xen
46_os-prober
47_custom
48_custom
50_rescue_proxy

Where did they come from? They do not belong to ROSA packages. Please, remove them from this directory and try again.
Comment 7 Eugene Budanov 2014-12-10 22:05:37 MSK
(In reply to comment #6)
> You have the following additional files in your /etc/grub.d/ directory:
> 43_rescue_proxy
> 45_linux_xen
> 46_os-prober
> 47_custom
> 48_custom
> 50_rescue_proxy
> 
> Where did they come from? They do not belong to ROSA packages. Please,
> remove them from this directory and try again.

That's very strange. Because I don't install any software from non-ROSA repos and no other distros on this computer was installed. I execute grub recovery from ROSA R4 LXDE live flash.

But! After deleting files in list above I can restore loader.
Comment 8 Konstantin Vlasov 2014-12-10 22:47:30 MSK
OK, if this fixed the problem I'm closing the bug.