You are not logged in.

#1 2013-03-13 03:39:19

lobo2
Member
Registered: 2013-03-13
Posts: 19

[Solved] Automating copying the kernel and initramfs files to UEFISYS

Beginners'_Guide#Install_and_configure_a_bootloader

as per the instruction I tried automating the kernel and initramfs copying from here UEFI_Bootloaders#Systemd, but the systemctl command fails saying invalid argument.

# systemctl enable efistub-update.path
Error message says something like systemctl enable operation failed invalid argument

How do I fix this? I left this step out as this shouldn't affect the system unless I run an update and the kernel is updated.

Last edited by lobo2 (2013-03-14 03:31:41)

Offline

#2 2013-03-13 05:42:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

Is that the exact error message, or are you paraphrasing? You can query failed systemd units with systemctl --failed

You should also post your service file in case it has something broken in it...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-03-13 12:43:49

lobo2
Member
Registered: 2013-03-13
Posts: 19

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

jasonwryan wrote:

Is that the exact error message, or are you paraphrasing? You can query failed systemd units with systemctl --failed

You should also post your service file in case it has something broken in it...

I remember the error message, it says, systemctl enable operation failed invalid argument. I will try again and post the exact details when I get back to my machine later this evening.

Offline

#4 2013-03-14 01:55:18

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

This whole copying issue can be avoided if you mount your EFI partition at /boot .
Note: As of refind-efi 0.6.5, refind now automatically detects kernels in /boot. They do not have to be renamed to have a .efi extension either. Hence, the following sync scripts aren't needed if using refind.

Offline

#5 2013-03-14 02:08:54

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

Just read your other post. Please do not create new topics about the same issue, especially if the other topic contains vastly more information and the answer...

Offline

#6 2013-03-14 02:16:58

lobo2
Member
Registered: 2013-03-13
Posts: 19

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

teateawhy wrote:

This whole copying issue can be avoided if you mount your EFI partition at /boot .
Note: As of refind-efi 0.6.5, refind now automatically detects kernels in /boot. They do not have to be renamed to have a .efi extension either. Hence, the following sync scripts aren't needed if using refind.

Yes, this can be a possible workaround, but I'm still considering the risks as detailed in the other post. newbies think too much, don't they.   tongue

teateawhy wrote:

Just read your other post. Please do not create new topics about the same issue, especially if the other topic contains vastly more information and the answer...

I wasn't sure if it is the same issue. This deals with systemctl command and the other deals with UEFI. I don't see a correlation other than mounting ESP as /boot doesn't need copying kernel every time it gets updated. That's one possible workaround, but the issues are different, aren't they?

Last edited by lobo2 (2013-03-14 02:24:47)

Offline

#7 2013-03-14 03:28:16

lobo2
Member
Registered: 2013-03-13
Posts: 19

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

User error!

I typed a - instead of a .

[Install]
WantedBy=multi-user-target

As you see the last word should have been .target instead of -target

I have an excuse, I was up until 4AM working on this the other day ......

Offline

#8 2013-03-14 03:28:59

lobo2
Member
Registered: 2013-03-13
Posts: 19

Re: [Solved] Automating copying the kernel and initramfs files to UEFISYS

lobo2 wrote:

I have an excuse, I was up until 4AM working on this the other day ......

but I still feel stupid!

Offline

Board footer

Powered by FluxBB