[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781515: debian-edu-install: PXE install including profile 'Thin-Client-Server' fails due to wrong preseeding



On Mon, Mar 30, 2015 at 10:23:50PM +0200, Wolfgang Schweer wrote:
>  
> Maybe it would work w/o preseeding build-client-opts and instead 
> providing a configuration file /etc/ltsp/ltsp-build-client.conf with
> this content:
> 
> EATMYDATA="true"

While the configuration file approach doesn't seem to work for some 
reason, using another hook instead should work:
 
Provide a copy of 
/usr/share/ltsp/plugins/ltsp-build-client/Debian/080-eatmydata as 
/usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata
with the default value "false" flipped to "true":
---------------------------------------------------------------------
case "$MODE" in
    commandline)
        add_option "eatmydata" "`eval_gettext "use eatmydata to speed up build times, at risk of data not getting written to disk"`" "advanced" "true"
        ;;
    configure)
        if [ -n "$option_eatmydata_value" ]; then
            # load libeatmydata
            libeatmydata=libeatmydata.so
            if [ -n "$LD_PRELOAD" ]; then
                export LD_PRELOAD="$libeatmydata $LD_PRELOAD"
            else
                export LD_PRELOAD="$libeatmydata"
            fi
            # install eatmydata package early during debootstrap
            if [ -z "$INCLUDE" ]; then
                INCLUDE="eatmydata"
            else
                INCLUDE="$INCLUDE,eatmydata"
            fi 
        fi
        ;;
esac
----------------------------------------------------------------          

IMO this would also make sure that 'eatmydata' is used for all possible 
LTSP chroot installation types like netinst, USB stick, pxeinstall or 
using scripts like debian-edu-ltsp and ltsp-build-client.

Wolfgang

Attachment: signature.asc
Description: Digital signature


Reply to: