[Sugar-devel] LiveCD with image writing activity (was Re: easier installation of soas)

Frederick Grose fgrose at gmail.com
Mon Mar 2 15:58:00 EST 2009


When it comes time to build the LiveUSB images, one should consider
the options, below, from the livecd-iso-to-disk.sh script.

Unless a home.img file is created (by specifying a --home-size-mb
NNN), the user may be surprised, disappointed, or frustrated with the
difficulty in keeping saved Activities should they decide to update
the Sugar version on their USB drive.

(from livecd-iso-to-disk.sh)
cryptedhome=1
keephome=1
homesizemb=0
swapsizemb=0
overlaysizemb=0

HOMEFILE="home.img"
while [ $# -gt 2 ]; do
    case $1 in
    --overlay-size-mb)
        checkint $2
        overlaysizemb=$2
        shift
        ;;
    --home-size-mb)
        checkint $2
            homesizemb=$2
            shift
        ;;
    --swap-size-mb)
        checkint $2
        swapsizemb=$2
        shift
        ;;
        --crypted-home)
            cryptedhome=1
        ;;
        --unencrypted-home)
            cryptedhome=""
            ;;
        --delete-home)
            keephome=""
            ;;
    --noverify)
        noverify=1
        ;;
    --reset-mbr|--resetmbr)
        resetmbr=1
        ;;
    --mactel)
        mactel=1
        ;;
    --xo)
        xo=1
        skipcompress=1
        ;;
    --xo-no-home)
        xonohome=1
        ;;
    --compress)
        skipcompress=""
        ;;
    --skipcompress)
        skipcompress=1
        ;;
        --extra-kernel-args)
            kernelargs=$2
            shift
            ;;
        --force)
            force=1
            ;;
    *)
        usage
        ;;
    esac
    shift
done


More information about the Sugar-devel mailing list