From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: Grub : Could not delete variable: Invalid argument Date: Tue, 18 Feb 2020 15:28:08 -0500 Message-ID: <877e0jy71j.fsf@gmail.com> References: <20190816182257.GA30269@planet> <20190816185531.GA2118@planet> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35253) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j49TZ-00039w-EU for help-guix@gnu.org; Tue, 18 Feb 2020 15:28:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j49TX-0001AA-Rj for help-guix@gnu.org; Tue, 18 Feb 2020 15:28:13 -0500 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:37081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j49TX-00017f-Ke for help-guix@gnu.org; Tue, 18 Feb 2020 15:28:11 -0500 Received: by mail-qk1-x743.google.com with SMTP id c188so20867233qkg.4 for ; Tue, 18 Feb 2020 12:28:11 -0800 (PST) In-Reply-To: <20190816185531.GA2118@planet> (Akram Chehaima's message of "Fri, 16 Aug 2019 19:55:31 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Akram Chehaima Cc: help-guix@gnu.org Hello Akram, Akram Chehaima 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