Re: loop-aes initrd failes to boot 2.6.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Muellenberg wrote:
> On Wednesday 03 March 2004 19:24, Jari Ruusu wrote:
> > Please post grub configuration and _all_ modified definitions of
> > build-initrd.sh script.
> 
> diff build-initrd.sh.default build-initrd.sh.ownConfig
> 
> < CRYPTROOT=/dev/hda2
> > CRYPTROOT=/dev/hda6
              ^^^^^^^^^
When devfs is mounted by kernel (CONFIG_DEVFS_FS=y and CONFIG_DEVFS_MOUNT=y
in kernel config and USEDEVFS=1 in build-initrd.sh config), BOOTDEV=
CRYPTROOT= and EXTERNALGPGDEV= (if needed) must be specified using long form
genuine devfs name. /dev/hda6 is a compatibility name provided by devfsd.
devfsd is not yet running when these names are used.

If your kernel is NOT configured with CONFIG_DEVFS_FS=y and
CONFIG_DEVFS_MOUNT=y, then build-initrd.sh must be configured with
USEDEVFS=0.

> < ROOTTYPE=ext2
> > ROOTTYPE=reiserfs
> < CIPHERTYPE=AES128
> > CIPHERTYPE=AES256
> < USEGPGKEY=1
> > USEGPGKEY=0
> < INITRDGZNAME=initrd.gz
> > INITRDGZNAME=initrd-2.6.gz
> < ROOTLOOPINDEX=5
> > ROOTLOOPINDEX=1
> < USEDEVFS=0
> > USEDEVFS=1
    ^^^^^^^^^^
> 
> cat grub.conf
> ---snip---
> title=linux-2.6.3-ck2
> root (hd0,0)
> kernel /vmlinuz-2.6.3-ck2 init=/linuxrc rootfstype=minix
> initrd /initrd-2.6.gz
> ---snip---

That looks ok. If it still fails, try with "root=/dev/ram0" or "root=0100"
kernel parameter. Not specifying root= was a workaround for kernel bug in
some older 2.4 kernels. Not sure if that bug is still there in 2.6 kernels.

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux