You are not logged in.
Pages: 1
Topic closed
So this is a somewhat urgent problem for me. I'm not a beginner per se, but I've hit some dead ends here. First time posting and all that.
I went to update today, which went fine, save I saw that mkinitcpio failed, so I went to run it manually.
INSERT will ~ mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: Invalid config: No hooks found
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: Invalid config: No hooks foundSo I go and try looking at /etc/mkinitcpio.conf and see that it has one line:
# MODULESI'm 90% sure this is why it's failing, but I don't know A) why this happened, B) how to fix it, or C) how to make sure this never happens again.
(I'm also using btrfs, but I failed to make a snapshot before)
Last edited by Theoretician (2014-07-22 21:42:10)
Offline
Post your whole /etc/mkinitcpio.conf.
Offline
@karol:
He did! And as he surmised, that's the problem.
A) You'll probably never know, but chances are it was PEBKAC.
B) Extract the default mkinitcpio.conf from the mkinitcpio package.
C) It probably won't happen again. If you customize it, you could back it up just in case.
Last edited by alphaniner (2014-07-22 20:34:41)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
A) Look through your shell history and see if you overwrote the file
B) Copy your backed up version across or grab a new one and modify to your needs
C) See A.
Offline
Try replacing your /etc/mkinitcpio.conf with the original...
https://raw.githubusercontent.com/falco … tcpio.conf
Last edited by Slithery (2014-07-22 20:40:01)
Offline
slithery, thank you, that solution worked. I had to modify it with the right hooks for btrfs, but just flat out replacing was the correct solution.
Attempting to mark as SOLVED.
Offline
thank you Slithery, this worked for me as well.
Offline
Please don't necro 10 year old threads
Closing this old solved thread.
Offline
Pages: 1
Topic closed