Re: [PATCH] switch_root: add subroot support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/12/2009 01:02 PM, Daniel Drake wrote:
The current switch_root can only switch to a new root that is the root
of a mount point.

This patch adds support for "subroots", where the new root is somewhere
below a mount point. It does this by adding in a few extra steps to
chroot into the subroot after the enclosing partition has been moved
and entered.

This will be used by OLPC, who sort-of have 2 copies of Fedora stored
on a single partition under different directory trees, where the
initramfs decides which one to boot into.
---
  switch_root.c |   91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
  1 files changed, 88 insertions(+), 3 deletions(-)

...

forwarded to Karel Zak, who maintains switch_root in util-linux-ng

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux