[hardy] ltsp-build-client builds incomplete filesystem
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.
Oops.
Here's a fix:
diff -u ltsp-5. 0.40~bzr2008021 2/debian/ extra-plugins/ 030-mythbuntu ltsp-5. 0.40~bzr2008021 2/debian/ extra-plugins/ 030-mythbuntu 0.40~bzr2008021 2/debian/ extra-plugins/ 030-mythbuntu 0.40~bzr2008021 2/debian/ extra-plugins/ 030-mythbuntu nosuid, nodev 0 0 /etc/init. d/${i} ]; then {runlevel} .d/K80$ {i} || true
--- ltsp-5.
+++ ltsp-5.
@@ -125,14 +125,26 @@
proc /proc proc defaults 0 0
tmpfs /tmp tmpfs defaults,
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}
+ for runlevel in 0 1 2 3 4 5 6 S; do
+ chroot $ROOT ln -sf /etc/init.d/${i} /etc/rc$
+ 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~bzr2008021 2/debian/ changelog ltsp-5. 0.40~bzr2008021 2/debian/ changelog 0.40~bzr2008021 2/debian/ changelog 0.40~bzr2008021 2/debian/ changelog bzr20080212- 0ubuntu5) hardy; urgency=low bzr20080212- 0ubuntu4) hardy; urgency=low
--- ltsp-5.
+++ ltsp-5.
@@ -1,3 +1,10 @@
+ltsp (5.0.40~
+
+ * 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~
* make sure the right proxy line is set in the chroot, thanks