Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
raid > device mapping encryption > lvm, /sbin/init problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ross8653
n00b
n00b


Joined: 14 Jan 2004
Posts: 51

PostPosted: Sat Feb 18, 2006 6:50 pm    Post subject: raid > device mapping encryption > lvm, /sbin/init pro Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum