Dnia 2014-04-13, o godz. 14:10:51
FRIGN <[email protected]> napisał(a):

> Good day,
> 
> sometimes, you depend on an initramfs to do stuff for you before
> the rootfs is available.
> Busybox has become the standard for "all your initramfs needs", but
> tbh, I hate working with it.
> Statically linking sbase and ubase and choosing the tools you need for
> the job almost solves the problem, but the lack of switch_root, which
> almost every initramfs depends on, forces you to use busybox (because
> util-linux doesn't link statically).
> 
> Now, I would've already sent in a patch, but I am pretty sure somebody
> here already hacked it together before. So, to save my time, I better
> ask now.
> 
> Cheers
> 
> FRIGN
> 

Toybox has implementation of it:
http://landley.net/hg/toybox/file/43c3d6350b38/toys/other/switch_root.c

Reply via email to