<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Dear Ashish,<br>
<br>
</tt>
<blockquote
 cite="mid:AANLkTimsu0Zqg_ag-J3spmKegeYalTqC04HHtD_Gj2cp@mail.gmail.com"
 type="cite">
  <div><tt>I find that kernel modules fail to load when I specify a
relative path to the kernel. For example:</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>$ vstart -k mydir/netkit-kernel-i386-K2.8/netkit-kernel</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>The UML machine starts up but gives this error:</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>Modules directory not mounted.</tt></div>
  <div><tt>Loading kernel modules...FATAL: Could not load
/lib/modules/2.6.26.5-netkit-K2.8/modules.dep: No such file or directory</tt></div>
  <div><tt>Setting kernel variables (/etc/sysctl.conf)...done.</tt></div>
  <div><tt>Setting up networking....</tt></div>
  <div><tt>Configuring network interfaces...modprobe: FATAL: Could not
load /lib/modules/2.6.26.5-netkit-K2.8/modules.dep: No such file or
directory</tt></div>
</blockquote>
<tt><br>
Well, yes, this is indeed a bug. Thank you for signaling<br>
<br>
</tt>
<blockquote
 cite="mid:AANLkTimsu0Zqg_ag-J3spmKegeYalTqC04HHtD_Gj2cp@mail.gmail.com"
 type="cite">
  <div><tt><br>
  </tt></div>
  <div><tt>If I use an absolute path instead:</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>$&nbsp;vstart -k
/home/ashish/mydir/netkit-kernel-i386-K2.8/netkit-kernel</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>then it correctly loads the modules. Fine, but now I'm
trying to set the kernel path within a lab.conf file. I have:</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>pc1[kernel]=$HOME/.nettle/netkit/download/netkit-kernel-i386-K2.8/netkit-kernel</tt></div>
  <div><tt><br>
  </tt></div>
  <div><tt>and the modules are not loaded. I've tried adding a slash
and a slash dot to the beginning of the path, but get the same results.
Is ther any way to make this work?</tt></div>
</blockquote>
<tt><br>
Please try the attached patch, which is supposed to be applied to
vstart. It should enable environment variable expansion in kernel paths
and therefore solve your problem.<br>
<br>
<br>
</tt>
<blockquote
 cite="mid:AANLkTimsu0Zqg_ag-J3spmKegeYalTqC04HHtD_Gj2cp@mail.gmail.com"
 type="cite">
  <div><tt><br>
  </tt></div>
  <div><tt>Thank you.</tt></div>
</blockquote>
<tt><br>
You're welcome.<br>
<br>
Regards,<br>
Massimo.<br>
<br>
<br>
</tt>
<blockquote
 cite="mid:AANLkTimsu0Zqg_ag-J3spmKegeYalTqC04HHtD_Gj2cp@mail.gmail.com"
 type="cite">
  <div><tt><br>
  </tt></div>
  <pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
_______________________________________________
Netkit.users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Netkit.users@list.dia.uniroma3.it">Netkit.users@list.dia.uniroma3.it</a>
<a class="moz-txt-link-freetext" href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
</tt></pre>
</blockquote>
</body>
</html>