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

Re: New tasksel broke Debian Edu (Was: Did new tasksel break Debian Edu?)



On Mon, Jan 02, 2017 at 05:05:59PM +0100, Wolfgang Schweer wrote:
> I'm wondering if this would be allowed / would work:
> 
> diff --git a/debian/debian-edu-profile-udeb.postinst b/debian/debian-edu-profile-udeb.postinst
> index a5f7ecde..0afb0878 100755
> --- a/debian/debian-edu-profile-udeb.postinst
> +++ b/debian/debian-edu-profile-udeb.postinst
> @@ -4,5 +4,10 @@ set -e
>  
>  #DEBHELPER#
>  
> +# Get rid of DEBIAN_TASKS_ONLY to allow installation of education tasks.
> +if [ -e /var/lib/dpkg/info/pkgsel.postinst ] ; then
> +    sed -i s/DEBIAN_TASKS_ONLY=1// /var/lib/dpkg/info/pkgsel.postinst
> +fi
> +
>  # Ask about which profile to install.
>  debian-edu-profile

This actually seems to work.

I was able to install a machine (profile 'minimal' for a quick test) 
using the daily mini.iso where the latest udebs are fetched from the 
web.

So the test setup used pkgsel-udeb 0.45, debian-edu-install-udeb 1.911 
and debian-edu-profile-udeb 1.911 inside d-i environment and tasksel 
3.39 in the target chroot.

The additional code in d-e-profile-udeb.postinst worked as expected.

Running /usr/lib/debian-edu-config/testsuite/taskpkgs in the rebooted 
system: no errors are reported, success for 111 installed packages.

Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: