LTSP: dist-upgrade Debian Squeeze to Wheezy

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

LTSP: dist-upgrade Debian Squeeze to Wheezy

Post by ^rooker »

We've had a running LTSP 5 on Debian Squeeze (v6), and wanted to do a dist-upgrade to Debian Wheezy (v7).

Problems encountered:

*) Kernel panic:
During boot on the LTSP client, it halted right after setting it#s IP using DHCP with the following messages:
modprobe: module overlayfs not found in modules.dep
sed: can't read /proc/meminfo: No such file or directory
/sbin/init-ltsp: 62: /usr/share/ltsp/init-ltsp.d/50-rm-system-services: artithmetic expression: expecting primary: " / 1024"
Followed by a call trace.
Well, the overlayfs seems irrelevant (according to a thread LTSP-discuss mailing list), as it is substituted by "aufs" in that case.

The problem causing this is, that "/proc" is not properly mounted during boot.
This is done in "/sbin/init-ltsp", but for some (yet unknown) reason, /proc just doesn't work as it should.

Ugly (really, really ugly) workaround. Should never be used. But might help with debugging:
Create a new file on the LTSP-client's chroot: /usr/share/ltsp/init-ltsp.d/00-proc-hack with the following contents:

Code: Select all

umount /proc
bash -l
This will drop you into a shell, where you must manually mount proc:

Code: Select all

mount -t proc -o nodev,nosuid,noexec proc /proc
Then you must do a listing of /proc:

Code: Select all

ls -ls /proc
It should be populated now.
Exit the shell.

The boot process should continue and finish properly.
How happily disguting this hack.


Links:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply