[klibc] "Destructive" utilities

H. Peter Anvin hpa at zytor.com
Mon Jun 7 11:26:35 PDT 2004


Alexander E. Patrakov wrote:
> 
> Also, to make life for script-writers simpler, we could consider writing 
> a "glue" program that has the following synopsis:
> 
> glue real_root program args
> 
> The "glue" program removes all files except "real_root" directory from 
> the / directory (including itself), remounts that directory on the root 
> directory, chroots there and execs the specified program with the 
> remaining arguments.
> 
> Rationale: without this, it is impossible to completely reclaim the 
> initramfs memory from the script since at least the "chroot" binary must 
> exist before chrooting from a script, and it can't be removed after chroot.
> 

This seems like it should move into kinit, I'm not sure... opinions?

	-hpa



More information about the klibc mailing list