Difference between revisions of "Talk:UEFI Bootloaders"

From ArchWiki
Jump to: navigation, search
(fix double redirect)
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== Issue with the Systemd Automation script ==
#REDIRECT [[Talk:Boot loaders]]
Beta990 has some reason questioning the '''Systemd Automation''' script's line:
  cp -r /usr/{share/refind/*,lib/refind/*$arch*} $refind_dir/  && ## update bin and dirs
As it is on the wiki, it just prints this when launched:
  /usr/lib/systemd/scripts/refind_name_patchv2: ligne31: « update-efi-dir » : identifiant non valable
[in English: unvalid identifier].
Unfortunately editing that single line as follow changes nothing:
  cp -r /usr/{share/refind/*,lib/refind/refind_*$arch*.efi} $refind_dir/ && ## update bin and dirs
Next in the wiki, there might be a typo at the end of the systemctl command (see the « ; »):
  Tip: Enable the systemd path unit by running :
  # systemctl enable refind_update.path;
[[User:Kozaki|kozaki]] ([[User talk:Kozaki|talk]]) 23:31, 3 February 2013 (UTC)
== MKinitcpio update hook not working ==
The mkinitcpio auto-update hook does not work. I get the following output: "Synced  to /boot/efi/EFI/arch", along with some cp errors. Obviously, the parameters are not passed.
If i replace the script with the static cp commands from incron, i get the following output, indicating that the image is copied BEFORE the new one is written:
      -> Running build hook: [efistub-update]
    Synced new kernel and initrd to EFIStub.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
As a result, my scripts now look as follows:
    build() {
        /usr/local/sbin/efistub-update &
    help() {
        cat <<HELPEOF
    This hook simply waits for mkinitcpio to finish and copies the finished ramdisk and kernel to UEFI
    while [ [ -d "/proc/$PPID" ]]; do
        sleep 1
    /bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/EFIStub/vmlinuz-arch.efi
    /bin/cp -f /boot/initramfs-linux.img /boot/efi/EFI/EFIStub/initramfs-arch.img
    /bin/cp -f /boot/initramfs-linux-fallback.img /boot/efi/EFI/EFIStub/initramfs-arch-fallback.img
    echo "Synced new kernel and initrd to EFIStub."
Also, the watch.sh does not get chmod +x'ed in the existing example.
--[[User:Denoyse|Denoyse]] ([[User talk:Denoyse|talk]]) 16:08, 15 February 2013 (UTC)
== Mkinitcpio update hook inefficiency ==
I updated the scripts reflecting [[User:Denoyse|Denoyse's]] suggestions, but the scripts still copy all of the files twice: first after building the regular image and again after building the fallback image. Is there a way to make it only run once, or to have different hooks for each image?
[[User:Silverhammermba|Silverhammermba]] ([[User talk:Silverhammermba|talk]]) 04:14, 1 March 2013 (UTC)

Latest revision as of 08:41, 13 February 2014

Redirect to: