Re: [dev][ubase] Implement switch_root

From: Hadrian Węgrzynowski <hadrian_AT_hawski.com>
Date: Sun, 13 Apr 2014 17:43:17 +0200

Dnia 2014-04-13, o godz. 14:10:51
FRIGN <dev_AT_frign.de> 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
Received on Sun Apr 13 2014 - 17:43:17 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 13 2014 - 17:48:06 CEST