个人工具

UbuntuHelp:UbuntuLTSP/AddingModules

来自Ubuntu中文

跳转至: 导航, 搜索
This page is specific to Ubuntu versions 8.04, 8.10, 9.04, 9.10

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


Introduction

Modules are to Linux what drivers are for Windows. For a general introduction to modules, see the Loadable_Modules page. In LTSP, it's essential to have the network modules for the network cards of the clients in the initramfs, otherwise the clients won't be able to boot. In this page it's assumed that the network card module is shipped with the Linux kernel, but it's not contained in the LTSP initramfs.

Preparation

You'll need to identify the missing module. For example, booting a client with a live USB stick and running `lsmod` might reveal that the module `atl1c` is used. But, when booting the same workstation as an LTSP client, an "ipconfig: cannot load /tmp/net-eth0.conf" error message is shown, which means that the `atl1c` module is not contained in the initramfs.

Adding the module

Add the missing module to `/opt/ltsp/i386/etc/initramfs-tools/modules`:

echo atl1c | sudo tee -a /opt/ltsp/i386/etc/initramfs-tools/modules

Update the chroot initramfs:

sudo chroot /opt/ltsp/i386/ update-initramfs -u
sudo chroot /opt/ltsp/i386/ /usr/share/ltsp/update-kernels

Copy the updated kernels in the tftp directory:

sudo ltsp-update-kernels

Reboot the clients. If everything went OK, they should be able to boot.

See Also

  • UbuntuLTSP - Community Ubuntu LTSP Documentation.