You are not logged in.

#1 2008-09-10 10:54:45

Kane
Member
Registered: 2006-10-08
Posts: 220

mkinitcpio and fallback image

Hi guys,
Sorry if this is a really silly question but i've edited /etc/mkinitcpio.conf to include only the modules i need during boot. However after a kernel upgrade it seems that the fallback image also uses this same setup, shouldnt the fallback image be using /etc/mkinitcpio.d/kernel26-fallback.conf?

>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [keymap]
:: Generating module dependencies
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [keymap]
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS

Thanks

Offline

#2 2008-09-10 15:47:49

filou.linux
Member
From: Zurich
Registered: 2008-04-17
Posts: 87

Re: mkinitcpio and fallback image

As your output states: No it doesn't.

Kane wrote:

==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect

But hey, don't worry. The solutions is simple (I guess). Run

/sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.d/kernel26-fallback.conf -g /boot/kernel26-fallback.img -S autodetect

This should do the job as far as I can tell. Hope this helps

Offline

#3 2008-09-10 16:40:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mkinitcpio and fallback image

Take a look at the options on that command line:

/sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.d/kernel26-fallback.conf -g /boot/kernel26-fallback.img -S autodetect

Particularly:

  -S SKIPHOOKS     Skip SKIPHOOKS (comma-separated) when building the image.

The fallback image is generated the same as the normal image, just without the autodetect hook.

Offline

#4 2008-09-10 19:54:44

Kane
Member
Registered: 2006-10-08
Posts: 220

Re: mkinitcpio and fallback image

but why does the kernel upgrade update the initram image for the fallback kernel with the same options as the default kernel?

surely the fallback image should autodetect hardware so you have a working system incase the mkinitcpio.conf isnt correct?

Offline

Board footer

Powered by FluxBB