On Mon, 2016-01-04 at 00:55 +0100, Christian Seiler wrote:
[...]
> Btw. initramfs-tools (via switch_root from util-linux) recursively
> deletes the files in the initramfs in a forked-off process right
> before exec()ing init. Is that really necessary? Shouldn't the
> kernel loose the data of the initramfs when the last process using
> the mount is replaced with the system's init? (If I look at
> /proc/self/mountinfo, there's no entry for the initramfs anymore
> after just doing what my PoC does.)

I hadn't noticed that, but it seems to be a recent change in the kernel
(somewhere between 3.16 and 4.3).

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to