You are not logged in.

#1 2007-09-03 08:42:31

J_Zar
Member
From: Villa Santina (UD), Italy
Registered: 2006-09-19
Posts: 36
Website

Kernel upgrade, mkinitcpio generates empty images

I have this problem from about one month.

After "sudo pacman -Syu":

( 4/28) aggiornamento in corso di kernel26          [##################################################################] 100%
>>>
>>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
>>>
>>> Updating module dependencies. Please wait ...
>>> MKINITCPIO SETUP
>>> ----------------
>>> If you use LVM2, Encrypted root or software RAID,
>>> Ensure you enable support in /etc/mkinitcpio.conf .
>>> More information about mkinitcpio setup can be found here:
>>> http://wiki.archlinux.org/index.php/Mkinitcpio

>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.22-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
/lib/initcpio/install/autodetect: line 14: mdadm: command not found
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [keymap]
:: Parsing hook [filesystems]
:: Parsing hook [resume]
:: Generating module dependencies
/sbin/mkinitcpio: line 226: depmod: command not found
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.dep' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.alias' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.symbols' does not exist
/sbin/mkinitcpio: line 235: gen_init_cpio: command not found
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.22-ARCH -c /etc/mkinitcpio.d/kernel26-fallback.conf -g /boot/kernel26-fallback.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [ide]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usbinput]
:: Parsing hook [raid]
:: Parsing hook [filesystems]
:: Generating module dependencies
/sbin/mkinitcpio: line 226: depmod: command not found
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.dep' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.alias' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-ARCH/modules.symbols' does not exist
/sbin/mkinitcpio: line 235: gen_init_cpio: command not found
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS
( 5/28) aggiornamento in corso di kernel26suspend2  [##################################################################] 100%
>>>
>>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
>>>
>>> Updating module dependencies. Please wait ...
>>> MKINITCPIO SETUP
>>> ----------------
>>> You will have to add the following initrd images to your bootloader::
>>> - kernel26suspend2.img for default image
>>> - kernel26suspend2-fallback.img for fallback image (resume support is disabled here by default)
>>> To actually be able to resume, you have to add resume
>>> support in /etc/mkinitcpio.conf.
>>> More information about mkinitcpio setup can be found here:
>>> http://wiki.archlinux.org/index.php/Mkinitcpio

==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.22-suspend2 -c /etc/mkinitcpio.conf -g /boot/kernel26suspend2.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
/lib/initcpio/install/autodetect: line 14: mdadm: command not found
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [keymap]
:: Parsing hook [filesystems]
:: Parsing hook [resume]
:: Generating module dependencies
/sbin/mkinitcpio: line 226: depmod: command not found
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.dep' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.alias' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.symbols' does not exist
/sbin/mkinitcpio: line 235: gen_init_cpio: command not found
:: Generating image '/boot/kernel26suspend2.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.22-suspend2 -c /etc/mkinitcpio.d/kernel26suspend2-fallback.conf -g /boot/kernel26suspend2-fallback.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [ide]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usbinput]
:: Parsing hook [raid]
:: Parsing hook [filesystems]
:: Generating module dependencies
/sbin/mkinitcpio: line 226: depmod: command not found
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.dep' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.alias' does not exist
ERROR: file '/tmp/lib/modules/2.6.22-suspend2/modules.symbols' does not exist
/sbin/mkinitcpio: line 235: gen_init_cpio: command not found
:: Generating image '/boot/kernel26suspend2-fallback.img'...SUCCESS
==> SUCCESS

"ls -lah /boot" output:

[j_zar@Surprise ~]$ ls -lah /boot/
totale 11M
drwxr-xr-x  3 root root 4,0K  3 set 09:40 .
drwxr-xr-x 20 root root 4,0K 27 ago 10:01 ..
-rw-r--r--  1 root root 762K 31 ago 21:55 System.map26
-rw-r--r--  1 root root 779K  1 set 14:49 System.map26suspend2
-rw-r--r--  1 root root 5,0K 28 feb  2007 diag1.img
drwxr-xr-x  2 root root 4,0K 20 giu 14:00 grub
-rw-r--r--  1 root root  72K  3 set 09:39 kconfig26
-rw-r--r--  1 root root  71K 25 mag 02:32 kconfig26ck.pacsave
-rw-r--r--  1 root root  72K  1 set 14:49 kconfig26suspend2
-rw-r--r--  1 root root   20  3 set 09:39 kernel26-fallback.img
-rw-r--r--  1 root root   20  3 set 09:39 kernel26.img
-rw-r--r--  1 root root 4,0M  7 giu 00:35 kernel26ck-fallback.img
-rw-r--r--  1 root root 1,4M  7 giu 00:35 kernel26ck.img
-rw-r--r--  1 root root   20  3 set 09:40 kernel26suspend2-fallback.img
-rw-r--r--  1 root root   20  3 set 09:40 kernel26suspend2.img
-rw-r--r--  1 root root 1,7M 31 ago 21:55 vmlinuz26
-rw-r--r--  1 root root 1,8M  1 set 14:49 vmlinuz26suspend2

There are errors with depmod in pacman's output.
However if I use mkinitcpio manually with presets I can generate images correctly without errors.

Any idea?

Offline

#2 2007-09-03 09:08:24

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Kernel upgrade, mkinitcpio generates empty images

I don't want to hijack the thread, but I'm wondering why mkinitcpio doesn't catch the errors - it even says that it was successful...

Offline

#3 2007-09-04 10:06:23

J_Zar
Member
From: Villa Santina (UD), Italy
Registered: 2006-09-19
Posts: 36
Website

Re: Kernel upgrade, mkinitcpio generates empty images

I feel a little bit ignored in this forum. Nobody has any guess?

Offline

#4 2007-09-04 13:41:56

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Kernel upgrade, mkinitcpio generates empty images

/sbin/mkinitcpio: line 226: depmod: command not found

This is your real problem.  depmod should be in /sbin or /usr/sbin (can't remember which, since I'm at work and don't have access to my arch box)

I forget what package provides it - but maybe someone with access to arch can run pacman -Qo $(which depmod) and figure out what package is screwing up here?

Offline

#5 2007-09-04 15:41:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Kernel upgrade, mkinitcpio generates empty images

LANG=C pacman -Qo $(which depmod)
/sbin/depmod is owned by module-init-tools 3.2.2-3

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2007-09-04 15:54:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Kernel upgrade, mkinitcpio generates empty images

Thanks, shining.

J_Zar - check to ensure /sbin/depmod exists and has the executable bit set (chmod o+x /sbin/depmod) - if it's not there try reinstalling module-init-tools (boot in with livecd, use /usr/bin/pacman.static -S module-init-tools)

Offline

#7 2007-09-04 18:46:01

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: Kernel upgrade, mkinitcpio generates empty images

Just a guess, but...
Since you did "sudo pacman -Syu", you are not logged in as root, correct ?  Is /sbin in your regular user account's $PATH ?  I think typically it is not by default, and that is why you are getting the "...depmod: command not found" message.

I would try adding /sbin ( and even /usr/sbin ) to your $PATH and rerunning it.  Or just su - root, then run your pacman update.  pacman is one of the few things I do log in as root to do, rather than sudo'ing.

Offline

#8 2007-09-04 21:07:51

J_Zar
Member
From: Villa Santina (UD), Italy
Registered: 2006-09-19
Posts: 36
Website

Re: Kernel upgrade, mkinitcpio generates empty images

Thank you all for answering!:)

@Cerebral

ls -la /sbin/depmod
-rwxr-xr-x 1 root root 35052 20 giu  2006 /sbin/depmod

@dschrute

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/java/bin:/opt/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin:/usr/unsermake/"

This is my exact situation before the bug. So this is not the problem yet.

Last edited by J_Zar (2007-09-05 10:11:52)

Offline

#9 2007-09-06 00:08:31

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: Kernel upgrade, mkinitcpio generates empty images

What happens if you run "pacman -Syu" as root rather than non-root via sudo ?

Offline

Board footer

Powered by FluxBB