From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QkTQp-0007Oh-8a for garchives@archives.gentoo.org; Sat, 23 Jul 2011 04:03:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8984121C041; Sat, 23 Jul 2011 04:03:03 +0000 (UTC) Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id A616821C020 for ; Sat, 23 Jul 2011 04:01:50 +0000 (UTC) Received: from mail-fx0-f52.google.com ([209.85.161.52]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1QkTPR-001jEb-V6 for Gentoo-user@lists.gentoo.org; Sat, 23 Jul 2011 11:01:50 +0700 Received: by fxd18 with SMTP id 18so6113049fxd.11 for ; Fri, 22 Jul 2011 21:01:43 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.76.202 with SMTP id d10mr3141352fak.106.1311393703822; Fri, 22 Jul 2011 21:01:43 -0700 (PDT) Received: by 10.223.87.5 with HTTP; Fri, 22 Jul 2011 21:01:43 -0700 (PDT) Date: Sat, 23 Jul 2011 11:01:43 +0700 Message-ID: Subject: [gentoo-user] Replace root with aufs-united sda & squashfs From: Pandu Poluan To: gentoo-user Content-Type: text/plain; charset=UTF-8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: 7f40a999e98229d584c98bef7879e721 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/