[hardy] ltsp-build-client builds incomplete filesystem

Bug #214481 reported by NickRickard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Undecided
Oliver Grawert

Bug Description

Ubuntu Hardy up-to-date as of 08-Apr-08 (which I'm fairly sure included some ltsp updates). During the Hardy testing phase I have been periodically removing the ltsp folder (rm -rf /opt/ltsp) and then rebuilding using 'ltsp-build-client' to verify that the process works. This has always been successful until yesterday when ltsp-build-client downloaded and successfully verified what appeared to be the full list of packages but then ran into problems when installing. Several of the error messages were along the lines of "FATAL: [stuff...] in df3 [stuff...] (eval 19) error at line 3" (it all scrolled past a bit quick). ltsp-build-client then built the little endian image and finished 'Done'.

Subsequently booting a thin client found the DHCP/TFTP server, went through the normal hardware detection, but didn't go to the login screen, instead remaining at the text login screen.
Reverting to a saved copy of /opt/ltsp-backup works fine, rerunning ltsp-build-client again had the same results.

I'm more than happy to try again tonight (in about 8 hours time) and grab any appropriate error logs but grateful for explicit directions on how to do this.

Revision history for this message
laga (laga) wrote :

Oops.

Here's a fix:

diff -u ltsp-5.0.40~bzr20080212/debian/extra-plugins/030-mythbuntu ltsp-5.0.40~bzr20080212/debian/extra-plugins/030-mythbuntu
--- ltsp-5.0.40~bzr20080212/debian/extra-plugins/030-mythbuntu
+++ ltsp-5.0.40~bzr20080212/debian/extra-plugins/030-mythbuntu
@@ -125,14 +125,26 @@
 proc /proc proc defaults 0 0
 tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
 EOF
- fi
+
+ blacklist_rc() {
+ for i in "$@"; do
+ # first remove all sym links, then add K links back
+ chroot $ROOT update-rc.d -f $i remove || true
+ if [ -f ${ROOT}/etc/init.d/${i} ]; then
+ for runlevel in 0 1 2 3 4 5 6 S; do
+ chroot $ROOT ln -sf /etc/init.d/${i} /etc/rc${runlevel}.d/K80${i} || true
+ done
+ fi
+ done
+ }

         # do not start ltsp-client-core
- chroot $ROOT update-rc.d -f ltsp-client-core remove || true
         # apparmor does not work well with stacking file systems
- chroot $ROOT update-rc.d -f apparmor remove || true
         # nbd-client shouldn't be stopped on reboot/halt
- chroot $ROOT update-rc.d -f nbd-client remove || true
+ blacklist_rc ltsp-client-core apparmor nbd-client
+
+ fi
+
     ;;
 esac

diff -u ltsp-5.0.40~bzr20080212/debian/changelog ltsp-5.0.40~bzr20080212/debian/changelog
--- ltsp-5.0.40~bzr20080212/debian/changelog
+++ ltsp-5.0.40~bzr20080212/debian/changelog
@@ -1,3 +1,10 @@
+ltsp (5.0.40~bzr20080212-0ubuntu5) hardy; urgency=low
+
+ * Make sure that mythbuntu specific calls are only executed when running
+ ltsp-build-client with --mythbuntu (LP: #214481)
+
+ -- Michael Haas <email address hidden> Wed, 09 Apr 2008 12:07:22 +0200
+
 ltsp (5.0.40~bzr20080212-0ubuntu4) hardy; urgency=low

   * make sure the right proxy line is set in the chroot, thanks

Changed in ltsp:
assignee: nobody → ogra
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ltsp - 5.0.40~bzr20080212-0ubuntu5

---------------
ltsp (5.0.40~bzr20080212-0ubuntu5) hardy; urgency=low

  [Oliver Grawert]
  * run /etc/kernel/postinst.d/ltsp-update-kernels in the update-image plugin
    to make sure the pxe config is really updated even in corner cases

  [Michael Haas]
  * Make sure that mythbuntu specific calls are only executed when running
    ltsp-build-client with --mythbuntu (LP: #214481)

 -- Michael Haas <email address hidden> Wed, 09 Apr 2008 12:07:22 +0200

Changed in ltsp:
status: New → Fix Released
Revision history for this message
NickRickard (nickrickard) wrote :

I've installed the updated ltsp package (....ubuntu5) but still have similar errors.

The first part of the installation appears to be successful but when it does the update and fetches the second lot of packages it has many problems similar to:
Setting up xserver-xorg (1:7.3+10ubuntu8) ...
debconf: unable to initialize frontend: Passthrough
debconf: (Failed to open fd 3: Bad file descriptor at (eval 19) line 3)
debconf: falling back to frontend: Noninteractive
FATAL: Could not load /lib/modules/2.6.24-16-server/modules.dep: No such file or directory

and indeed there isn't such a file - opt/ltsp/i386/lib/modules is empty.

And it finishes with:
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
Errors were encountered while processing:
 xserver-xorg-input-wacom
 xserver-xorg-input-all
E: Sub-process /usr/bin/dpkg returned an error code (1)
error: LTSP client installation ended abnormally

Booting a thin client now gets to the graphical login but without the mouse being detected and typing a (valid) username and password gives:
"This workstation isn't authorized to connect to the server"

Revision history for this message
Enrico (ezaffa) wrote :

Same here. ltsp-build-client ends with:

Processing triggers for initramfs-tools ...
Using '/usr/share/ldm/themes/edubuntu' to provide 'ldm-theme'.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package xubuntu-artwork-usplash
error: LTSP client installation ended abnormally

If image is build manually with ltsp-update-image I can boot thin client but I have no mouse working and the same error message:

"This workstation isn't authorized to connect to the server"

This can be solved with ltsp-update-sskeys and rebuilding image with ltsp-update-image. With this I can boot and login but still no mouse working.

Revision history for this message
Oliver Grawert (ogra) wrote :

thats completely different from teh initial report (where wrong initscripts were disabled)
I will have to disable the xubuntu theming for hardy apparently, xubuntu packages moved to universe, you need to use the --components option of ltsp-build-client to build with universe packages which is not the default (since it would break CD installs)

Revision history for this message
Oliver Grawert (ogra) wrote :

oh, you might want to file a bug against xubuntu to add the --components option with main and universe to the ltsp-client-builder/build-client-opts preseed variable on the cd installer, else it will likely break there as well.

Revision history for this message
Enrico (ezaffa) wrote :

Thanks Oliver, using
ltsp-build-client --components "main universe"
solves the problem.
I'm working on a clean Ubuntu Hardy installation, so I think this bug should affect any installation. Am'I wrong?
If it can help I'll be happy to file a new bug about this but I don't know exactly where.

Revision history for this message
NickRickard (nickrickard) wrote :

Comfirmed, using
ltsp-build-client --components "main universe"
also works for me. Many thanks.

I get the same error messages when ltsp-build-client can't find "2.6.24-16-server/modules.dep" - this is for the initial installation before it gets the updated 2.6.24.16 packages. However, it then completes the installation successfully.

(I previously reported opt/ltsp/i386/lib/modules is empty. It now contains "2.6.24-16-generic" but the ltsp-build is looking for "2.6.24-16-server/modules.dep". I'm running Ubuntu server edition but want 'normal' graphical Ubuntu for the clients. Might this be something to do with it?)

I'm on standard Ubuntu (server edition) so not sure about the xubuntu comment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.