Re: [RFC]: d-i, /dev, busybox
Joey Hess wrote:
> Erik Andersen wrote:
> > No problem using ramfs. When an initrd exits, the kernel does a pivot_root to
> > whatever device is specified in /proc/sys/kernel/real-root-dev. I am a bit
> > embarrased to admit it, but I once built a special purpose embedded CD where it
> > booted up, scanned a long list of devices, tried to mount them, and then looked
> > for a magic file I had placed on the CD (you can't know apriori where you
> > booted from). If/when the file was found, I mounted it via loopback, echoed
> > the major<<8+minor into /proc/sys/kernel/real-root-dev and then then kernel
> > ended up with a read-only root-fs that was loopback mounted from the cdrom.
> > You can do all sorts of goofy things this way.
>
> Hm, but does ramfs have a device name associated with it? Ramfs's are
> strange creatures..
s!device name!device major/minor!
--
see shy jo
Reply to:
- References:
- [RFC]: d-i, /dev, busybox
- From: David Whedon <dwhedon@gordian.com>
- Re: [RFC]: d-i, /dev, busybox
- From: Erik Andersen <andersen@codepoet.org>
- Re: [RFC]: d-i, /dev, busybox
- From: Joey Hess <joeyh@debian.org>
- Re: [RFC]: d-i, /dev, busybox
- From: Erik Andersen <andersen@codepoet.org>
- Re: [RFC]: d-i, /dev, busybox
- From: Joey Hess <joeyh@debian.org>