Jon Seymour
2014-06-20 12:12:15 UTC
G'day,
Had a quick look (not very detailed), and generally it looks good.
Thanks for the review.Had a quick look (not very detailed), and generally it looks good.
RUN bash -c 'ln -sf $(cd /usr/src; ls -d linux-headers-*-generic | tail
-1) /usr/src/linux'
This looks very much like a hack for me. I can see that on a generic-1) /usr/src/linux'
build environment there's little point in depending on the running
kernel's version, but such symlinks can be causing other trouble.
Setting the KERN_DIR env variable sounds like the clean solution to me.
the target of the symlink?
I agree with the principle that, in general, one shouldn't be setting
a symlink of this kind to configure a particular build, although for a
container-based build environment this seems safe-enough - the
container isn't going to be used for anything other than building
VirtualBox. That said, no harm following best practice everywhere.
If you have suggestions about the best way to derive the value of the
KERN_DIR variable, I am all ears.
jon.
Klaus
Regards,
jon seymour.
jon seymour.