You are not logged in.

#1 2009-08-21 20:29:56

marwooj
Member
Registered: 2009-08-21
Posts: 23

[SOLVED] Hook 'base' can not be found

I am chrooted into arch filesystem, trying to prepar kernel booted from usb. After
mkinitcpio -k 2.6.30-ARCH
I am getting:
FATAL: Hook 'base' can not be found.
What can be wrong?

Last edited by marwooj (2009-08-24 18:08:38)

Offline

#2 2009-08-21 21:27:24

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Hook 'base' can not be found

What does

ls /lib/initcpio/install/base

return?

Offline

#3 2009-08-23 19:33:52

marwooj
Member
Registered: 2009-08-21
Posts: 23

Re: [SOLVED] Hook 'base' can not be found

Profjim wrote:

What does

ls /lib/initcpio/install/base

return?

-rw-r--r-- 1 root root 1114 Jul 19 16:18 /lib/initcpio/install/base

Offline

#4 2009-08-23 20:50:38

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Hook 'base' can not be found

When are you getting the FATAL message? During the running of mkinitcpio or during boot-up?

I'm not aware of why this should improve things, but have you tried:

sudo mkinitcpio -p kernel26

Offline

#5 2009-08-24 16:38:41

marwooj
Member
Registered: 2009-08-21
Posts: 23

Re: [SOLVED] Hook 'base' can not be found

I am chrooting from ubuntu into arch filesystem

marwooj@host:~$ sudo chroot /media/disk/ bash
[sudo] password for marwooj: 
bash-4.0# sudo mkinitcpio -p kernel26
bash: sudo: command not found
bash-4.0# mkinitcpio -p kernel26
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/sbin/mkinitcpio: line 253: /dev/null: Permission denied
FATAL: Hook 'base' can not be found.
==> FAIL
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/sbin/mkinitcpio: line 253: /dev/null: Permission denied
FATAL: Hook 'base' can not be found.
==> FAIL
bash-4.0# who
who     whoami  
bash-4.0# whoami 
root
bash-4.0#

Offline

#6 2009-08-24 16:40:02

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Hook 'base' can not be found

you have that error because you didn't mounted /dev . see wiki.


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2009-08-24 16:50:19

marwooj
Member
Registered: 2009-08-21
Posts: 23

Re: [SOLVED] Hook 'base' can not be found

mount -t proc none /arch/proc
mount -o bind /dev /arch/dev
mount -o bind /sys /arch/sys
chroot /arch /bin/bash

works fine now smile

Why it is needed?

can not till booting

Offline

#8 2009-08-24 16:57:41

marwooj
Member
Registered: 2009-08-21
Posts: 23

Re: [SOLVED] Hook 'base' can not be found

not booting in virtual box :-(

Offline

#9 2009-08-24 17:20:17

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Hook 'base' can not be found

This is how I've learned to chroot:

mount -t proc none /arch/proc
mount -o bind /dev /arch/dev
mount -t sysfs none /sys /arch/sys
chroot /arch /bin/bash

That is, I mount a new sysfs, not just binding the old one. (At least some places on the wiki, concerning how to reinstall grub, say to do it this way.) Does that make a difference?

Offline

#10 2009-08-24 18:07:45

marwooj
Member
Registered: 2009-08-21
Posts: 23

Re: [SOLVED] Hook 'base' can not be found

never mind works fine on real hardware

Offline

Board footer

Powered by FluxBB