Upgrade local boot media from mandriva to ubuntu
From Mille-Xterm
[edit]
How to upgrade from Mandriva to Ubuntu
- Build ltsp-client-root, and run ltsp-modify-clientroot
- Copy the new kernel and initrd in the update directory from ltsp client root to xtermroot
cp -a /opt/ltsp/i386/updates/<desired directory> /opt/xtermroot/updates/ cd /opt/xtermroot/updates/ rm current ln -s <desired directory> current
- Now, create a new menu.lst file for ubuntu, and save it to /opt/xtermroot/updates/current/menu.lst
hiddenmenu timeout 2 title Terminal root (hd0,0) kernel /boot/default/vmlinuz panic=15 ro quiet splash media=diskonchip boot=nfs nfsroot=<nfs server ip>:/opt/ltsp/i386 initrd /boot/default/initrd title Admin root (hd0,0) kernel /boot/default/vmlinuz panic=15 ro quiet splash media=diskonchip menu=admin boot=nfs nfsroot=<nfs server ip>:/opt/ltsp/i386 initrd /boot/default/initrd
- Install modified update script rc.update in the xtermroot:
cp <mille-xterm sources>/mdv2ubuntu/rc.update /opt/xtermroot/etc/rc.update chmod +x /opt/xtermroot/etc/rc.update
- Add a new option named "DO_UPGRADE" in the configurator. Do this on the database server.
su - postgres
psql -d mille
INSERT INTO attributesDef (name,attributeClass,attributeType) VALUES ('DO_UPGRADE', 'mille', 1);
INSERT INTO attributesDefDict (attributesdef_id,value,sortval) VALUES (currval('attributesdef_id_seq'),'Y',0);
INSERT INTO attributesDefDict (attributesdef_id,value,sortval) VALUES (currval('attributesdef_id_seq'),'N',1);
- Create two nodes in the configurator, one with the old configuration, and the other for the new configuration. Here are the typical attributes for old and new config :
- old configuration
SOUND='Y' X_MODE_0='1280x1024' X_MODE_1='1024x768' X_MODE_2='800x600' X4_MODULE_01='drm' X4_MODULE_02='glx' X_MOUSE_PROTOCOL='auto' X_MOUSE_DEVICE='/dev/psaux' USE_XFS='N' X_HORZSYNC='31-79' X_VERTREFRESH='56-75' XkbModel='pc105' XkbLayout='ca_enhanced' SCREEN_01='startx' SCREEN_02='shell' SCREEN_03='tech' LOCAL_MEDIA='Y'
- New configuration
X_MODE_0='1280x1024' X4_MODULE_01='drm' X4_MODULE_02='glx' X_MOUSE_PROTOCOL='auto' X_MOUSE_DEVICE='/dev/psaux' USE_XFS='Y' X_HORZSYNC='31-79' X_VERTREFRESH='56-75' XkbModel='pc105' XkbLayout='ca(fr)' SCREEN_02='tech' SCREEN_07='startx-mille-xterm' PXE_CONFIG='xterm-feisty' LOCAL_MEDIA='Y' LBGROUP='feisty' DO_UPGRADE='Y'
One important thing: don't define anything for screen_01, because a shell is already started there.
Move all thin-clients under the old configuration, and move them under the new configuration to trigger the configuration.

