https://wiki.archlinux.org/api.php?action=feedcontributions&user=Femtomatic&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:07:05ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:UEFI_Bootloaders&diff=262915Talk:UEFI Bootloaders2013-06-15T19:32:46Z<p>Femtomatic: /* Sync EFISTUB Kernel scripts need to be updated because of the move to /usr/bin */ new section</p>
<hr />
<div>== Issue with the Systemd Automation script ==<br />
<br />
Beta990 has some reason questioning the '''Systemd Automation''' script's line:<br />
cp -r /usr/{share/refind/*,lib/refind/*$arch*} $refind_dir/ && ## update bin and dirs<br />
As it is on the wiki, it just prints this when launched:<br />
/usr/lib/systemd/scripts/refind_name_patchv2: ligne31: « update-efi-dir » : identifiant non valable<br />
[in English: unvalid identifier].<br />
Unfortunately editing that single line as follow changes nothing:<br />
cp -r /usr/{share/refind/*,lib/refind/refind_*$arch*.efi} $refind_dir/ && ## update bin and dirs<br />
<br />
Next in the wiki, there might be a typo at the end of the systemctl command (see the « ; »):<br />
Tip: Enable the systemd path unit by running :<br />
# systemctl enable refind_update.path;<br />
[[User:Kozaki|kozaki]] ([[User talk:Kozaki|talk]]) 23:31, 3 February 2013 (UTC)<br />
<br />
<br />
== MKinitcpio update hook not working ==<br />
<br />
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.<br />
<br />
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:<br />
<br />
-> Running build hook: [efistub-update]<br />
Synced new kernel and initrd to EFIStub.<br />
==> Generating module dependencies<br />
==> Creating gzip initcpio image: /boot/initramfs-linux.img<br />
==> Image generation successful<br />
<br />
As a result, my scripts now look as follows:<br />
<br />
/usr/lib/initcpio/install/efistub-update <br />
----<br />
#!/bin/sh<br />
<br />
build() {<br />
/usr/local/sbin/efistub-update &<br />
}<br />
<br />
help() {<br />
cat <<HELPEOF<br />
This hook simply waits for mkinitcpio to finish and copies the finished ramdisk and kernel to UEFI<br />
HELPEOF<br />
}<br />
<br />
and<br />
<br />
/usr/local/sbin/efistub-update<br />
----<br />
#!/bin/sh<br />
<br />
while [ [ -d "/proc/$PPID" ]]; do<br />
sleep 1<br />
done<br />
<br />
/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/EFIStub/vmlinuz-arch.efi<br />
/bin/cp -f /boot/initramfs-linux.img /boot/efi/EFI/EFIStub/initramfs-arch.img<br />
/bin/cp -f /boot/initramfs-linux-fallback.img /boot/efi/EFI/EFIStub/initramfs-arch-fallback.img<br />
<br />
echo "Synced new kernel and initrd to EFIStub."<br />
<br />
<br />
<br />
Also, the watch.sh does not get chmod +x'ed in the existing example.<br />
<br />
--[[User:Denoyse|Denoyse]] ([[User talk:Denoyse|talk]]) 16:08, 15 February 2013 (UTC)<br />
<br />
== Mkinitcpio update hook inefficiency ==<br />
<br />
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?<br />
<br />
[[User:Silverhammermba|Silverhammermba]] ([[User talk:Silverhammermba|talk]]) 04:14, 1 March 2013 (UTC)<br />
<br />
== Sync EFISTUB Kernel scripts need to be updated because of the move to /usr/bin ==<br />
<br />
Hi everyone, <br />
<br />
I think the '''sync EFISTUB Kernel''' scripts should be updated. All of them point to /bin/cp, but since the move to /usr/bin they should be pointing to /usr/bin/cp. <br />
<br />
I can do it but I was just wondering if it would be agood idea to add a warning somewhere to tell people to update their scripts.<br />
<br />
Cheers<br />
[[User:Femtomatic|Femtomatic]] ([[User talk:Femtomatic|talk]]) 19:32, 15 June 2013 (UTC)</div>Femtomatic