ross8653 n00b
Joined: 14 Jan 2004 Posts: 51
|
Posted: Sat Feb 18, 2006 6:50 pm Post subject: raid > device mapping encryption > lvm, /sbin/init pro |
|
|
I've setup 3 or 4 boxes using device mapping encryption, one even using raid so the new things that i might've messed up are lvm2 and this is also my first time using amd64. I've followed this guide many times and used it for this install http://gentoo-wiki.com/SECURITY_Encrypting_Root_Filesystem_with_DM-Crypt
I have two raid5 arrays > two device mapping encryption nodes > one lvm2, that is my root partition, which is why I have to boot off a ram drive
I can boot to the ram disk (created a 16mb one, and tweaked the size in the kernel), i can access the raid, create the device mapped encryption nodes, and mount the lvm2 partition. But when i try to execute /sbin/init is where my problem is. I am SO close please help me figure this out
here's the script i'm using for linuxrc on the ram drive
Code: |
export PATH=/bin:/sbin
mount -t proc proc /proc
CMDLINE=`cat /proc/cmdline`
sh devmap_mknod.sh
sleep 1
cryptsetup create c3 /dev/md3
cryptsetup create c4 /dev/md4
lvm vgscan
lvm vgchange -ay
mount /dev/vg0/bume /new
cd /new
pivot_root . initrd
exec chroot . /bin/sh <<-EOF >/dev/console 2>&1
exec /sbin/init ${CMDLINE}
EOF
|
And this gives me
Code: |
Usage: init 0123456SsQqAaBbCcUu
Kernel Panic - not syncing: Attempted to kill init!
|
I've dropped to a shell many times and CMDLINE is equal to "root=/dev/ram0 rw init=linuxrc"
/dev/console both on the the ram drive and the lvm partition has a major/minor of 5,1 which matches /proc/devices
I've tried other chroot commands but they are all similar such as the one found https://forums.gentoo.org/viewtopic-t-108291-highlight-device+mapper+encryption.html
exec chroot . /sbin/init <dev/console >dev/console 2>&1
This gives the same usage message as above
grub.conf
Code: |
root (hd1,0)
kernel (hd1,0)/bzImage root=/dev/ram0 rw init=linuxrc
initrd (hd1,0)/myinitrd
|
I can't figure this out, if you have an idea where i should be looking let me know |
|