Re: [Q] pivot_root and initrd

H. Peter Anvin (hpa@zytor.com)
16 Oct 2001 20:30:47 -0700


Followup to: <3BCCEA19.8080809@usa.net>
By author: Eric <ebrower@usa.net>
In newsgroup: linux.dev.kernel
>
> I've been doing some work to boot a 2.4.x linux system from onboard
> flash and then change_root to an attached disk.
>
> As the kernel documentation admonishes us to use pivot_root instead of
> relying on the change_root facility (Documentation/initrd.txt: "Current
> kernels still support it, but you should _not_ rely on its continued
> availability") I have given it a shot with less than stellar results--
> perhaps someone (Warner?) could enlighten me on a few points:
>
> 1) What is the current status of pivot_root from an initrd? Is anyone
> using it for this purpose, and is it being deprecated by the "union
> mounts" mentioned in the bootinglinux-current document by Warner?
>

Works great. I use it in my SuperRescue CD for example; you can there
check out a complete, working example.

ftp://ftp.kernel.org/pub/dist/superresuce/

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/