public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user <Gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Replace root with aufs-united sda & squashfs
Date: Sat, 23 Jul 2011 11:01:43 +0700	[thread overview]
Message-ID: <CAA2qdGWtkCsP8Fr6+BTOpdS94Xjz6rHemaOeHQLk2UCQ5E1jyA@mail.gmail.com> (raw)

As part of Project:Protogenoi [1], I am planning to replace root with
a united filesystem using aufs. The layers will be:

Top: /dev/xvda3 (Xen/XenServer Virtual Disk device)
Bottom: /.root.sqfs

The aim would be to generate the smallest .xva (XenServer Virtual
Appliance) possible. To achieve this, the 'physical root' at /dev/sda3
will be emptied as empty as possible, except for /etc and /dev.

AFAIK, there are files that *must* still exist for this strategy to
succeed. However, this post from f.g.o [2] said that those files
aren't necessary. So, I should do the following sequence in /etc/fstab
:

1. Mount /dev/xvda3 as /
2. Mount /.root.sqfs as /
3. Mount aufs, uniting /dev/xvda3 and /.root.sqfs as /
4. Mount everything else

Am I getting this right?

[1] http://en.gentoo-wiki.com/wiki/User:Pepoluan/Project:Protogenoi
[2] http://forums.gentoo.org/viewtopic-p-5707187.html?sid=b8feb20174c9d8d9ae74fc82a30ce911#5707187


Rgds,


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



             reply	other threads:[~2011-07-23  4:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-23  4:01 Pandu Poluan [this message]
2011-07-24 18:37 ` [gentoo-user] Re: Replace root with aufs-united sda & squashfs Nicolas Sebrecht

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=CAA2qdGWtkCsP8Fr6+BTOpdS94Xjz6rHemaOeHQLk2UCQ5E1jyA@mail.gmail.com \
    --to=pandu@poluan.info \
    --cc=Gentoo-user@lists.gentoo.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