[Pkg-ltsp-devel] Bug#721597: ltsp-server: Make sure to mount /sys in chroot during installation

Petter Reinholdtsen pere at hungry.com
Mon Sep 2 08:32:41 UTC 2013


Package:  ltsp-server
Version:  5.4.2-6
Tags:     patch
User:     debian-edu at lists.debian.org
Usertags: debian-edu

Hi.  We discovered a problem with LTSP installation on some machines
in Debian Edu Wheezy, caused by oss-compat loading kernel modules, and
modprobe ending up loading the same module over and over recursively.
The cause was that /sys/ was not mounted in the LTSP chroot.  To fix
it, I added a file
/usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/010-mount-sys
with this content, modelled after the 010-mount-proc file already in
LTSP:

  # Make sure /sys is mounted in the chroot, to allow modprove to work
  # as it should.  Avoids problem installing oss-compat on some machines.
  case "$MODE" in
    after-install)
        chroot_mount sys /sys "-t sysfs"
        ;;
  esac

Please add this to the default setup, to make sure the LTSP chroot
look more like a full system during built.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-ltsp-devel mailing list