[lxc-devel] [RFC PATCH 00/11] Add support for devtmpfs in user namespaces
Christian Seiler
christian at iwakd.de
Fri May 16 20:17:49 UTC 2014
Hi,
(removed every CC but yourself and lxc-devel, don't need to spam LKML
for this)
> Woa! Time out... Sorry, this will be an off topic aside.
>
> Loop devices support partitions? I'd love to know how that works.
Use util-linux >= 2.21 with Kernel >= 3.1:
losetup -P -f filename
Creates: /dev/loopXpY
Remove with: losetup -d /dev/loopX
(Also removes partition devices automatically.)
Also, using device mapper is an option (supported by all Linux
distributions that aren't completely ancient):
losetup -f filename
kpartx -a /dev/loopXpY
Creates: /dev/mapper/loopXpY
Remove with: kpartx -d /dev/loopX && losetup -d /dev/loopX
(Note that not doing kpartx -d /dev/loopX is problematic.)
Regards,
Christian
More information about the lxc-devel
mailing list