You are not logged in.

#1 2006-12-29 11:20:32

jasiekd
Member
From: Poland
Registered: 2006-12-29
Posts: 12

[SOLVED] mkinitcpio (problem with ide and encrypt hooks)

I've installed kernel26-beyond 2.6.19beyond2 and after that mkinitcpio couldn't generate img file. I tried with 2 configs:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="reiser4 ext2 reiserfs"

# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish.  This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
#    FILES="/etc/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'modload' may be used in place of 'udev', but is not recommended
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
#    This setup specifies all modules in the MODULES setting above.
#    No raid, lvm, or encrypted root is needed.
#    HOOKS="base"
#
#    This setup will autodetect all modules for your system and should
#    work as a sane default
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
#    This setup will generate a 'full' image which supports most systems.
#    No autodetection is done.
#    HOOKS="base udev ide scsi sata usb filesystems"
#
#    This setup assembles an ide raid array with an encrypted root FS.
#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
#    HOOKS="base udev ide raid encrypt filesystems"
#
#    This setup loads an LVM volume group on a usb device.
#    HOOKS="base udev usb filesystems lvm"
HOOKS="base udev autodetect ide scsi sata encrypt filesystems"

and

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="reiser4 ext2 reiserfs"

# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish.  This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
#    FILES="/etc/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'modload' may be used in place of 'udev', but is not recommended
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
#    This setup specifies all modules in the MODULES setting above.
#    No raid, lvm, or encrypted root is needed.
#    HOOKS="base"
#
#    This setup will autodetect all modules for your system and should
#    work as a sane default
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
#    This setup will generate a 'full' image which supports most systems.
#    No autodetection is done.
#    HOOKS="base udev ide scsi sata usb filesystems"
#
#    This setup assembles an ide raid array with an encrypted root FS.
#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
#    HOOKS="base udev ide raid encrypt filesystems"
#
#    This setup loads an LVM volume group on a usb device.
#    HOOKS="base udev usb filesystems lvm"
HOOKS="base udev autodetect scsi sata encrypt filesystems"

With the first config mkinitcpio froze when was generating ide hook and with the second froze when generating encrypt hook.

Any idea what might have gone wrong? What should I do?

Best regards,
jasiekd.

Last edited by jasiekd (2007-02-20 14:00:49)

Offline

#2 2007-01-04 18:36:37

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: [SOLVED] mkinitcpio (problem with ide and encrypt hooks)

I don't have any experience with the beyond-kernel, but on two of my machines which already use encrypted root with LUKS I have added the following modules into /etc/mkinitcpio.conf
(I use AES for swap & Serpent for the rest, sha256 as essiv-hash)

MODULES="dm-crypt aes-i586 serpent sha256"

Did you switch the Kernel on an already installed/running System or did you make a fresh installation with the beyond-kernel? In case your System is already installed, you could try the mkinitcpio procedure with a life-cd (may be worth a try).

There's also an excellent article in the wiki:

http://wiki.archlinux.org/index.php/Mkinitcpio

In the troubleshooting-section of the article there's also a solution to a problem concerning the beyond-kernel and ide/sata/scsi, which could be just what you are looking for.  wink

Hope it'll be helpfull!


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#3 2007-02-20 14:00:22

jasiekd
Member
From: Poland
Registered: 2006-12-29
Posts: 12

Re: [SOLVED] mkinitcpio (problem with ide and encrypt hooks)

There was a problem with module-init-tools, I had to reinstall it.

Offline

Board footer

Powered by FluxBB