~ubuntu-branches/ubuntu/lucid/ltsp/lucid

« back to all changes in this revision

Viewing changes to server/plugins/ltsp-build-client/Ubuntu/010-fat-client

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Graber
  • Date: 2010-01-04 19:20:29 UTC
  • mfrom: (111.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20100104192029-8kisjo9jwe3ix1ps
Tags: 5.1.99-0ubuntu1
* New upstream version (5.1.99)
 * Implement nbd-proxy for more stability
 * Force netcat to wait for data
 * Properly save/restore IFS
 * Lots of code cleanup
 * Implement vendor specific functions in ltsp-build-client
 * Update translations
 * Optimize localapps rc.d scripts
 * Update add_mirrors and make use of it
 * Implement a caching infrastructure
 * Add Fat client support for Ubuntu
 * Get rid of some awk calls
 * Respect ltsp-build-client.conf defaults
 * Speed up boot process by starting more functions in background
 * Fix tty/vt detection for flickerless boot
 * Make ltsp-build-client usage more consistent.
 * Improve ltsp-logout-action
 *
 * LOTS of other changes and fixes I forgot.

* Get rid of USPLASH=y
* Add two upstart jobs to force a reboot (avoid squashfs errors)
* Trigger update-initramfs post install
* Depend on pciutils and usbutils (as no longer in minimal)
* Move tftpd-hpa from depend to recommend
* Drop dependency on openssh-client | ssh in ltsp-server

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
case "$MODE" in
2
 
    commandline)
3
 
        # Add a command line switch to ltsp-build-client that installs desktop
4
 
        # meta-packages so that diskless workstations can everything locally
5
 
        add_option "fat-client" "`eval_gettext "run most or all applications locally"`" "advanced" "false"
6
 
        add_option "fat-client-desktop" "`eval_gettext "run most or all applications locally"`" "advanced" "true"
7
 
    ;;
8
 
    after-install)
9
 
        # If fat client isn't enabled, just continue
10
 
        [ -z "$option_fat_client_value" ] && return
11
 
 
12
 
        # Check what the sysadmin chose to install, if (s)he is lazy and didn't
13
 
        # specify one, then we install the desktop meta-package that's already
14
 
        # installed on the server.
15
 
 
16
 
        if [ -n "$option_fat_client_desktop_value" ]; then
17
 
            export fat_client_desktop="$option_fat_client_desktop_value"
18
 
        else
19
 
            export fat_client_desktop=ubuntu-desktop
20
 
            for cdd in ed x k; do
21
 
                if [ $(dpkg-query -W --showformat='${Package}' ${cdd}ubuntu-desktop 2>/dev/null) ]; then
22
 
                        export fat_client_desktop=${ccd}ubuntu-desktop
23
 
                     return
24
 
                fi
25
 
            done
26
 
        fi
27
 
 
28
 
        # Check if the proc filesystem is mounted, if not do so
29
 
        if [ ! -f $ROOT/proc/mounts ]; then
30
 
            mount -t proc proc $ROOT/proc
31
 
        fi
32
 
 
33
 
        # Install desktop packages, then remove excess and incompatible packages
34
 
        chroot $ROOT apt-get --force-yes -yy install $fat_client_desktop
35
 
        chroot $ROOT apt-get --force-yes -yy --purge remove gdm network-manager.* modemmanager ubufox apport-gtk apport apport-symptoms jockey-common jockey-gtk
36
 
        chroot $ROOT apt-get --force-yes -yy --purge autoremove
37
 
 
38
 
        # Disable the fast user switching applet, it doesn't work without GDM
39
 
        chroot $ROOT gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --set --type list --list-type string /apps/panel/global/disabled_applets "[OAFIID:GNOME_FastUserSwitchApplet,OAFIID:GNOME_IndicatorApplet]"
40
 
 
41
 
        # Clean up package cache
42
 
        chroot $ROOT apt-get clean
43
 
    ;;
44
 
esac