Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: udev <-> mdev
Date: Mon, 16 Jul 2012 13:54:26
Message-Id: 50041CD0.8030201@gentoo.org
In Reply to: Re: [gentoo-dev] Re: udev <-> mdev by Maxim Kammerer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 15/07/12 09:00 PM, Maxim Kammerer wrote:
5 > On Mon, Jul 16, 2012 at 3:30 AM, Duncan <1i5t5.duncan@×××.net>
6 > wrote:
7 >> Thinking in that direction does stimulate yet another idea, tho.
8 >> What about a squashfs root? AFAIK squashfs is read-only at use
9 >> time, thus enforcing actually mounting something else to write
10 >> anything, eliminating many of the down sides of sticking with the
11 >> initial ramfs root, but it would allow the same flexibility in
12 >> terms of sticking whatever into it at create-time, while only
13 >> taking the memory necessary for what's actually stuck in it at
14 >> create-time.
15 >
16 > It is possible, see:
17 > https://github.com/mkdesu/liberte/blob/master/src/root/initrd/init
18 > https://github.com/mkdesu/liberte/blob/master/src/etc/fstab
19 >
20 > The setup above is somewhat different from what you have in mind
21 > (SquashFS image is located on disk, and contains the complete live
22 > filesystem, not just a skeleton), so mounting read-writable
23 > branches can be deferred to the regular post-initramfs services
24 > (such as localmount) — on the other hand, maybe you want to do the
25 > same (mount branches read-only in initramfs, and remount them
26 > read-write in an init.d service).
27 >
28
29 ...if going this route, why not simply not bother to pivot_root out of
30 the initramfs at all? or pivot_root but only into a directory
31 structure still sitting in the initramfs? As long as all non-root
32 bits are in separate storage, you can mount 'em all in the appropriate
33 place...
34
35
36 -----BEGIN PGP SIGNATURE-----
37 Version: GnuPG v2.0.19 (GNU/Linux)
38
39 iF4EAREIAAYFAlAEHNAACgkQ2ugaI38ACPCbBgD+MCInpuQXjir37zFTn3ebJe30
40 dEWqqxihYox1+XrR7JYA/26jjkglGXZzxP0Kq17xuyoDBD8qnymAsziieDsMCMvN
41 =/C5P
42 -----END PGP SIGNATURE-----

Replies

Subject Author
[gentoo-dev] Re: udev <-> mdev Duncan <1i5t5.duncan@×××.net>