Hi, I am just curious if something like this is possible.

I essentially need a two part boot process.

I would like to have linux first boot to an initrd with a sshd running
on it.
Then, after connecting to this system over the network, I would like to
have the boot process finish by doing a pivot_root/chroot to a new root
partition.

I was thinking what I really need is like a linuxrc1 and a linuxrc2.
The initrd would be a bare minimum system with a sshd running on it,
which is started via linuxrc1.
linuxrc2 would be the script I execute after connecting via ssh to do
the pivot_root.

I'm not sure if there are any limitations on the size of ramdrives or
not, but I have 512 GB of memory and this thing doesn't need to run on
a floppy so space issues are not too important.

If anyone can point me to a good initrd "how-to" that would be great.
Mainly I just want to get an idea if something like this is possible
before investing a lot in it.

cheers,
e

p.s. in case your curious, I'm trying to figure out a way to enter the
passwords for a loopback encrypted root filesystem over ssh, so I don't
have to be right at the console to mount the system.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to