pivot_root()?
pivot_root()?
Posted Mar 13, 2026 22:26 UTC (Fri) by Nikratio (subscriber, #71966)In reply to: pivot_root()? by jbroadus
Parent article: Practical uses for a null filesystem
I'm confused by this as well. The manpage quote says "The rootfs (initial ramfs) cannot be pivot_root()ed" and the cover letter says that "pivot_root() doesn't work on the real rootfs". So it seems there are cases where pivot_root does work - namely when the root filesystem is not of type rootfs but something like ext3. Is that true? If so, then what makes rootfs so different that pivot_root can't work there? And wouldn't it be easier to just fix that instead of them nullfs workaround?
