unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Akram Chehaima <aslackw@riseup.net>
Cc: help-guix@gnu.org
Subject: Re: Grub : Could not delete variable: Invalid argument
Date: Tue, 18 Feb 2020 15:28:08 -0500	[thread overview]
Message-ID: <877e0jy71j.fsf@gmail.com> (raw)
In-Reply-To: <20190816185531.GA2118@planet> (Akram Chehaima's message of "Fri, 16 Aug 2019 19:55:31 +0100")

Hello Akram,

Akram Chehaima <aslackw@riseup.net> writes:

> On Fri, Aug 16, 2019 at 07:22:57PM +0100, Akram Chehaima wrote:
>> Hey
>> My system was  working fine , like other days
>> I run these routine commands
>> 
>> # guix pull
>> 
>> But whene i run
>> 
>> # sudo guix system reconfigure  /etc/config.scm
>> 
>> I have problem message from grub:
>> 
>> 
>> slack@planet ~$ sudo guix system reconfigure  /etc/config.scm 
>> guile: warning: failed to install locale
>> hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package and defining `GUIX_LOCPATH', along these lines:
>> 
>>      guix package -i glibc-utf8-locales
>>      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>> 
>> See the "Application Setup" section in the manual, for more info.
>> 
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivation will be built:
>>    /gnu/store/drw1mbhx088q4ans6nsqd53rr02g5rn2-grub.cfg.drv
>> building /gnu/store/drw1mbhx088q4ans6nsqd53rr02g5rn2-grub.cfg.drv...
>> /gnu/store/wj8rlkvcmz80ib6c3lz5qhbg1drlvzmp-system
>> /gnu/store/6ak1rfdkcp0pm4wwy3cia85psq63q06m-grub.cfg
>> 
>> activating system...
>> making '/gnu/store/wj8rlkvcmz80ib6c3lz5qhbg1drlvzmp-system' the current system...
>> setting up setuid programs in '/run/setuid-programs'...
>> populating /etc from /gnu/store/pxhzsr2iq2xy221p3n09gkgns4g0as2k-etc...
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> building /gnu/store/1rhjd4ahqg7zm1n11f1n0zzh6dikhbb8-install-bootloader.scm.drv...
>> guix system: error: '/gnu/store/jjys4nn7s5xi9i2wbdb0gvl50cisy1wb-grub-efi-2.04/sbin/grub-install --boot-directory //boot --bootloader-id=Guix --efi-directory //boot/efi' exited with status 1; output follows:
>> 
>>   Installing for x86_64-efi platform.
>>   Could not delete variable: Invalid argument
>>   /gnu/store/jjys4nn7s5xi9i2wbdb0gvl50cisy1wb-grub-efi-2.04/sbin/grub-install: error: efibootmgr failed to register the boot entry: Block device required.
>> 
>> slack@planet ~$ sudo guix system reconfigure  /etc/config.scm 
>> guile: warning: failed to install locale
>> hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package and defining `GUIX_LOCPATH', along these lines:
>> 
>>      guix package -i glibc-utf8-locales
>>      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>> 
>> See the "Application Setup" section in the manual, for more info.
>> 
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivation will be built:
>>    /gnu/store/drw1mbhx088q4ans6nsqd53rr02g5rn2-grub.cfg.drv
>> building /gnu/store/drw1mbhx088q4ans6nsqd53rr02g5rn2-grub.cfg.drv...
>> /gnu/store/wj8rlkvcmz80ib6c3lz5qhbg1drlvzmp-system
>> /gnu/store/6ak1rfdkcp0pm4wwy3cia85psq63q06m-grub.cfg
>> 
>> activating system...
>> making '/gnu/store/wj8rlkvcmz80ib6c3lz5qhbg1drlvzmp-system' the current system...
>> setting up setuid programs in '/run/setuid-programs'...
>> populating /etc from /gnu/store/pxhzsr2iq2xy221p3n09gkgns4g0as2k-etc...
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> building /gnu/store/1rhjd4ahqg7zm1n11f1n0zzh6dikhbb8-install-bootloader.scm.drv...
>> guix system: error: '/gnu/store/jjys4nn7s5xi9i2wbdb0gvl50cisy1wb-grub-efi-2.04/sbin/grub-install --boot-directory //boot --bootloader-id=Guix --efi-directory //boot/efi' exited with status 1; output follows:
>> 
>>   Installing for x86_64-efi platform.
>>   Could not delete variable: Invalid argument
>>   /gnu/store/jjys4nn7s5xi9i2wbdb0gvl50cisy1wb-grub-efi-2.04/sbin/grub-install: error: efibootmgr failed to register the boot entry: Block device required.
>>   
>> Note that I have not restarted the system yet.
>> Is there a solution ?
>> 
>> 
> I have solved the problem after rebooting the system
> I was afraid after a reboot will not boot because of a problem with Grub

I encountered the same problem, after my system had been asleep (suspend
to RAM).  It seems to be a EFI firmware bug, as rebooting resolves it,
as you found out.  It affects other distributions as well, such as
Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1851922.

You could try setting your boot compatibily mode to Legacy instead of
EFI in your BIOS settings, if your machine supports this.

Otherwise, there's not much to do (than complain to the manufacturer)
unless your board is supported by Libreboot :-).

Maxim

      reply	other threads:[~2020-02-18 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-16 18:22 Grub : Could not delete variable: Invalid argument Akram Chehaima
2019-08-16 18:55 ` Akram Chehaima
2020-02-18 20:28   ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877e0jy71j.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=aslackw@riseup.net \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).