/install_efi: grub_efi_x86_64-install:command not found #4

Open
Dieterbe opened this Issue Apr 4, 2012 · 2 comments

Projects

None yet

1 participant

@Dieterbe
Dieterbe commented Apr 4, 2012

When/after pacman is installing all packages:

(installing linux)
===> Image generation successfull
Generating locales...
    en_US.UTF-8...done
    en_US.ISO-8859-1...done
Generation complete.
error: failed to initialize alpm library (could not find or read directory)
/install_efi: line 51: grub_efi_x86_64-install:command not found
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
done

Note that when chrooted in /install, the grub2-efi-x86_64 package is correctly installed, but it doesn't contain anything matching 'install'

Dieterbe commented Apr 4, 2012

it seems this solves the error in question:

-grub_efi_x86_64-install --bootloader-id=grub --no-floppy --recheck
+grub-install --target=x86_64-efi --bootloader-id=grub --no-floppy --recheck

that said, both other errors still remain.

Dieterbe commented Apr 5, 2012

the 3rd error is fixed with this commit Dieterbe@790932a

To fix the first :

  • mkdir -p /var/lib/pacman/{sync,local}
  • but also: since this command did not run, it means pacman is not aware of any installed packages, the funny result being it will start pulling dependencies from base (like udev, linux ,...) and then complain that the files already exist in the file system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment