[arch-releng] archiso's (?) /dev/dm-* and /dev/loop devices and how to ignore them in AIF
thomas at archlinux.org
Fri Dec 30 08:32:21 EST 2011
Am 27.12.2011 19:08, schrieb Dieter Plaetinck:
> are these all created by archiso? what exactly are they for?
I'll try to figure this out:
loop0-loop7 are loop devices allocated by default - this happens because
old userspace can't use the new loop-control device and needs
The rest (on the image I just booted):
/dev/loop100 is a block device for root-image.fs.sfs (squashfs,
read-only), which is mounted. /dev/loop101 is a block device for the
file root-image.fs, which is a (sparse) ext4 file system image (inside
squashfs, read-only). /dev/loop102 is a block device for the sparse file
/run/cowspace/root-image.cow (which is on tmpfs, read-write). The last
two loop devices are put together into a device mapper snapshot device
(dm-0), which is then mounted as /.
The exact same thing happens for lib-modules.fs.sfs and
usr-share.fs.sfs, creating loop103-loop108, dm-1 and dm-2.
You booted a core image, so you have loop109 and loop110 as well, which
are probably for the pkgs-$ARCH and pkgs-any squashfs.
This block-based unioning/snapshotting is certainly not optimal, but it
is stable and supported by unpatched kernels. We don't have a file-based
solution that fulfills these criteria.
> does anyone know what is the best way to ignore them?
> * some property in /sys/block/<dev>/ ?
> * how about just maintaining a list of exactly all these filenames .. or:
> * how about having archiso maintain a file called /var/aif-blockdevices or something? then aif can read that file and ignore blockdevices based on what it finds there.
> (just don't call it archiso-blockdevices or something, because AIF is supposed to be able to run in several environments)
Maybe not /var, but /run. Another way: use
udevadm control --property=AIF_IGNORE=1 [...]
This should work :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 900 bytes
Desc: OpenPGP digital signature
More information about the arch-releng