> I've not yet read the patch, and likely I won't before you generate it with
> -u.

I was sleepy :) I'm sending it again.
I added some text from an email Henrik Nordstrom sent.

I checked out the XML sources from SF.net but faq.xml
doesn't seem to be the source of faq.html.

Regards.

-- 
Homepage : http://geocities.com/arhuaco

The first principle is that you must not fool yourself
and you are the easiest person to fool.
     -- Richard Feynman.
--- faq.html	2005-02-23 12:29:30.000000000 -0500
+++ faq.new.html	2005-09-17 00:34:42.549717334 -0500
@@ -536,6 +536,56 @@
 uml_utilities from the source distribution.
 </blockquote>
 
+<a name="kernel Panic, cannot set up thread-local storage"/><table width="100%" bgcolor="#e0e0e0">
+            <tr>
+              <td>
+                <b>
+                  <font color="black">kernel Panic, cannot set up thread-local storage</font>
+                </b>
+              </td>
+            </tr>
+          </table>
+<blockquote>
+The boot looks like this:
+<pre>
+  cannot set up thread-local storage: cannot set up LDT for thread-local storage
+  Kernel panic - not syncing: Attempted to kill init!
+</pre>
+Your UML kernel doesn't support Native Posix Thread Library (NPTL) and the binaries
+you're running are being dynamically linked to it. Try running in SKAS3 mode first.
+You might be able to avoid the kernel panic setting the
+<a href="http://people.redhat.com/drepper/assumekernel.html";>LD_ASSUME_KERNEL</a> environment
+variable in the command line.
+<pre><font color="black">
+./linux init=/bin/sh LD_ASSUME_KERNEL=2.4.1
+</font></pre>
+<br><br>
+Many commands are very restrictive about what is preserved in the environment
+when starting child processes, so relying on LD_ASSUME_KERNEL to be globally
+set for all processes in the whole system is generally not a good idea.
+It's very hard to guarantee. Thus it's better to move the NPTL libraries away.
+<ul>
+<li> <font color="black"># mount root_fs mnt-uml/ -o loop</font>
+<li> <font color="black"># mv mnt-uml/lib/tls mnt-uml/lib/tls.away</font>
+<li> <font color="black"># umount mnt-uml</font>
+</ul>
+If you're running Debian, you might prefer to use dpkg-divert.
+<pre><font color="black">
+  # export LD_ASSUME_KERNEL=2.4.1
+  # mount root_fs mnt-uml/ -o loop
+  # chroot mnt-uml
+  # mkdir /lib/tls.off
+  # cd /lib/tls
+  # for f in *;
+    do
+         dpkg-divert --divert --local --rename --divert /lib/tls.off/$f --add /lib/tls/$f;
+    done
+  # exit
+  # umount mnt-uml
+  # unset LD_ASSUME_KERNEL
+</font></pre>
+</blockquote>
+
 <a name="Any other panic, hang, or strange behavior"/><table width="100%" bgcolor="#e0e0e0">
             <tr>
               <td>

Reply via email to