From: Alkis Georgopoulos <alkisg@gmail.com>
To: linux-unionfs@vger.kernel.org
Subject: How to specify the mount points for multiple lower layers?
Date: Thu, 06 Aug 2015 11:25:16 +0300 [thread overview]
Message-ID: <55C319EC.4080707@gmail.com> (raw)
From https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt:
mount -t overlay overlay -olowerdir=/lower1:/lower2:/lower3 /merged
How can I specify that I want e.g. lower2 to be mounted at merged/home?
If all lower* layers can only be mounted at /merged, then I don't see
any way at all that overlayfs would allow me to combine e.g.
Partition MountDir MergedDir
------------------------------
/dev/sda1 /root-fs /merged
/dev/sda2 /home-fs /merged/home
I even tried to create a fake directory structure like this:
/dev/sda2 /fakedir/home /merged
...so that I would mount /dev/sda2 to /fakedir/home, and then try to use
lower2=/fakedir, but then I got a different issue, that overlayfs
doesn't include submounts, so sda2 wasn't visible at all then.
So I was unable to combine the root and home partitions to the correct
paths using overlayfs (I'm planning to use a tmpfs as the upper dir
later on).
Any help? Thank you!
next reply other threads:[~2015-08-06 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 8:25 Alkis Georgopoulos [this message]
2015-08-12 9:39 ` How to specify the mount points for multiple lower layers? Miklos Szeredi
2015-08-12 13:24 ` Alkis Georgopoulos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C319EC.4080707@gmail.com \
--to=alkisg@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).