~alpine/users

1

make readlink (so abuild) work in a chroot?

Marc Chantreux <eiro@phear.org>
Details
Message ID
<20200630133223.GA2903@prometheus.u-strasbg.fr>
DKIM signature
missing
Download raw message
hello,

i would like to use and ship alpine chrooted dirs with alpine installed
as developpement env to a project i am involved in (please don't try to tell
me about docker) but apkbuild-cpan don't work because abuild don't work
because readlink's stdout (captured at the very begining of abuild to
set abuild_path) is empty in a chrooted env.

i guess i'm not the first one to ask but the FAQ don't mention readlink
or chroot. any clue, link and help would be appreciated.

regards,
marc
Marc Chantreux <eiro@phear.org>
Details
Message ID
<20200701061702.GC3244@prometheus.u-strasbg.fr>
In-Reply-To
<20200630133223.GA2903@prometheus.u-strasbg.fr> (view parent)
DKIM signature
missing
Download raw message
On Tue, Jun 30, 2020 at 03:32:23PM +0200, Marc Chantreux wrote:
> because readlink's stdout (captured at the very begining of abuild to
> set abuild_path) is empty in a chrooted env.

[[sroracle]] on #alpine-devel pointed out that /proc must be mounted
so

    mount -t proc none /proc

made readlink happy.

have a nice day
marc
Reply to thread Export thread (mbox)