[arch-projects] [PATCH] [devtools] Add /dev/loop-control support.
Thomas Bächler
thomas at archlinux.org
Wed Jan 11 04:49:23 EST 2012
Am 11.01.2012 08:43, schrieb Gerardo Exequiel Pozzi:
> In order to take advantage of linux-3.1+ and mount/losetup of util-linux-2.21+,
> thats allows dynamic allocation of loopback devices.
>
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
> mkarchroot.in | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/mkarchroot.in b/mkarchroot.in
> index cda761c..4b92a35 100644
> --- a/mkarchroot.in
> +++ b/mkarchroot.in
> @@ -99,6 +99,7 @@ chroot_mount() {
> mknod -m 666 "${working_dir}/dev/tty" c 5 0
> mknod -m 666 "${working_dir}/dev/tty0" c 4 0
> mknod -m 666 "${working_dir}/dev/full" c 1 7
> + mknod -m 600 "${working_dir}/dev/loop-control" c 10 237
> ln -s /proc/kcore "${working_dir}/dev/core"
> ln -s /proc/self/fd "${working_dir}/dev/fd"
> ln -s /proc/self/fd/0 "${working_dir}/dev/stdin"
This still won't create the loopN file when you request one using
loop-control (unless losetup does it) - this is only tmpfs, and no udev
instance is looking after the chroot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120111/76aeda46/attachment.asc>
More information about the arch-projects
mailing list