[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 Tue, Dec 27, 2016 at 07:30:42PM +0100, Wolfgang Schweer wrote:
> On Mon, Dec 26, 2016 at 08:00:04PM +0100, Petter Reinholdtsen wrote:
> > As we depend on pkgsel to install the Debian Edu packages, I believe we
> > would have to copy the code from pkgsel into one of the d-e-install
> > udebs for that to work.  We have done similar things in the past, like
> > copying the content of laptop-detect-udeb into our udeb when the d-i
> > team decided to drop the laptop-detect-udeb (see
> > <URL: https://bugs.debian.org/488386 >).
> Things might be more complicated in this case as the relevant code 
> (DEBIAN_TASKS_ONLY=1 tasksel ...) is contained in pkgsel-udeb's 
> postinst.

As the debian-edu-install-udeb's status is 'half-configured' while 
pkgsel-udeb's one is still 'unpacked' at the time when 
debian-edu-profile is selected as item of the Debian Installer menu, 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
+# 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
 # Ask about which profile to install.


Attachment: signature.asc
Description: PGP signature

Reply to: