pavelmachek ([info]pavelmachek) wrote,
@ 2008-03-03 21:17:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
How to boot into distribution living in chroot...
Guillaume Chazarain describes this "interesting" trick: init=/working_distro/lib/ld-linux.so.2 --library-path
/working_distro/lib /working_distro/usr/sbin/chroot /working_distro/
/sbin/init

...okay, it probably also qualifies as "most interesting kernel cmdline hack", ever.


(Post a new comment)

Nice if needed....
(Anonymous)
2008-03-03 10:09 pm UTC (link)
My main system run from a debian install that gets bind --move:d from a subdirectory to / in the initramfs.

in debian it's not hard to use a modified script for initramfs-tools that boots straight into the chroot.

But if i ever need to recover something, i'll try to remember this useful trick to boot from a live CD.

(Reply to this)

not as much interesting
(Anonymous)
2008-03-19 03:02 pm UTC (link)
hello,

it doesn't seem too interestin to me. ld-linux is actually loader of elf files (it is used by kernel to run any elf executable automatically). if you compile chroot statically, the commandline will be much shorter, like this:

init=/some/dir/chroot-static /working_distro /sbin/init

--mtd

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…