Hello Jakub, On 3/1/19 7:45 PM, Jakub Wilk wrote: > The pivot_root(2) man page says: > "new_root does not have to be a mount point." > > But I couldn't get pivot_root(2) succeed unless new_root was a mount > point. So I dived into the Linux source and found the following comment > (in fs/namespace.c): > > * - it's okay to pick a root that isn't the root of a file system, e.g. > * /nfs/my_root where /nfs is the mount point. It must be a mountpoint, > * though, so you may need to say mount --bind /nfs/my_root /nfs/my_root > * first. > > So I think the man page is incorrect. I agree. And I also tried testing this point in various ways. I have by now already amended the page for the next release. Unfortunately, I forgot about your mail (I rediscovered the same problem independently.) So I overlooked to add you in Reported-by:. But thank you for the report, since it confirms what I also (re)discovered. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/