LTSP does not work out of the box on Ubuntu 15.10 wily with –arch AMD64 or i386 & thinclient or fatclient. You will get this error:
chroot: can’t execute ‘/usr/bin/test’: Exec format error
overlayfs: missing ‘workdir’
mount: mounting overlayfs on /root failed: Invalid argument
mount: mounting /dev/ on /root/dev/failed: No such file or directory
No init found. Try passing init= bootarg.
Here is a link to a chatroom where someone with this problem get’s to talk with the author of the patch:
Bug report: bugs.launchpad.net/ltsp/…, https://bugs.launchpad.net/ltsp/+bug/1506756
There are two options to fixing it:
- Manually Patch
- Patch it your self with this patch: bazaar.launchpad.net/~lt…
- sudo ltsp-chroot -b <base>
- cd /usr/share/initramfs-tools/
- edit hooks/ltsp and scripts/init-bottom/ltsp
- exit
- After you do that you have to get the chroot to rebuild it initramfs. You can do this by issuing these commands:
- Supposedly this works:
- sudo ltsp-chroot -b <base> /usr/share/ltsp/update-kernels; sudo ltsp-update-kernels
- I had to issue these commands instead
- sudo ltsp-chroot -b <base>
update-initramfs -u - exit
- sudo ltsp-chroot -b <base>
- Supposedly this works:
- Optional: Rebuild image and restart nbd server (This will disconnect existing clients)
- ltsp-update-image
- service nbd-server restart
OR
2. Install Greek schools PPA
Use the Greek schools PPA both on the server and in the chroot
add-apt-repository ppa:ts.sch.gr
apt-get update
apt-get dist-upgrade
ltsp-chroot -m
apt-get install software-properties-common
add-apt-repository ppa:ts.sch.gr
apt-get update
apt-get dist-upgrade
exit
ltsp-update-image
service nbd-server restart