[lxc-devel] [PATCH] Create busybox commands as symlinks instead of hardlinks

Dwight Engen dwight.engen at oracle.com
Fri Nov 30 23:06:26 UTC 2012


On Fri, 30 Nov 2012 23:17:20 +0100
Natanael Copa <ncopa at alpinelinux.org> wrote:

> On Fri, 30 Nov 2012 11:49:25 -0500
> Dwight Engen <dwight.engen at oracle.com> wrote:
> 
> > +    # it would be nice to just use "chroot $rootfs busybox
> > --install -s /bin"
> > +    # but that only works right in a chroot with busybox >= 1.19.0
> 
> I think it should work with busybox before 1.19 if you make
> sure /proc/self/exe works in the chroot.

Yeah I think it would too, but that is not set up when the template is
creating the links. I tried using it, but went looking in busybox src
when my links ended up pointing to /proc/self/exe :) The fallback to
argv[0] in busybox is fairly recent (2011-03) so I thought it was safer
for us to just do it by hand.

> -nc





More information about the lxc-devel mailing list