Comment 2 for bug 802985

Revision history for this message
Enrique Hernández Bello (ehbello) wrote :

I attach a patch for /usr/share/debootstrap/gutsy to support fake-uname wrapper[1] for LD_PRELOAD and workaround this problem.

# HOWTO #

Compile fake-uname.so as shown here:
$ gcc -shared -fPIC uname.c -o /usr/local/lib/fake-uname.so -ldl

(-ldl parameter at last of command line is important)
(fake-uname.so at /usr/local/lib is also important according to following patch)

Patch /usr/share/debootstrap/gutsy:
$ sudo patch -p0 fake-uname_support.patch

Use debootstrap with UTS_RELEASE variable like:
$ UTS_RELEASE=2.6.32 debootstrap lucid target_dir/

[1]http://www.developpez.net/forums/d466836/systemes/linux/systeme/changer-version-kernel-dynamiquement-chroot/#post2815469