Package: debian-cd
Version: 3.1.16
Tags: patch

In Debian Edu, we use the .disk/cd_type content to decide if Internet
connectivity is required or not.  And this work fine when we build ISOs
trying to include the complete archive, but not when we limit the ISO to
only have the packages we want.

But by default debian-cd do not put any useful value in the file if
COMPLETE=0.  Please change it to document the cd type also in this case,
with the same keywords used in the complete case, to allow our grep
calls to work.

This is the patch we use at the moment to build the Debian Edu ISOs:

diff -ur debian-cd.unpatched.wheezy/tools/start_new_disc 
debian-cd/tools/start_new_disc
--- debian-cd.unpatched.wheezy/tools/start_new_disc     2013-06-17 
22:55:07.000000000 +0200
+++ debian-cd/tools/start_new_disc      2013-06-21 15:07:54.000000000 +0200
@@ -150,7 +150,25 @@
             fi
         fi
     else
-        echo "not_complete" > $CDDIR/.disk/cd_type
+        if [ $DISKTYPE = DVD ] || [ $DISKTYPE = DLDVD ]; then
+            if [ "$MAXCDS"x = "1"x ]; then
+                echo "dvd/single/not_complete" > $CDDIR/.disk/cd_type
+            else
+                echo "dvd/not_complete" > $CDDIR/.disk/cd_type
+            fi
+        elif [ $DISKTYPE = BD ] || [ $DISKTYPE = DLBD ]; then
+            if [ "$MAXCDS"x = "1"x ]; then
+                echo "bluray/single/not_complete" > $CDDIR/.disk/cd_type
+            else
+                echo "bluray/not_complete" > $CDDIR/.disk/cd_type
+            fi
+        else
+            if [ "$MAXCDS"x = "1"x ]; then
+                echo "cd/single/not_complete" > $CDDIR/.disk/cd_type
+            else
+                echo "cd/not_complete" > $CDDIR/.disk/cd_type
+            fi
+        fi
     fi
 
     if [ $NUM_ARCHES -gt 1 ]; then

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2fl4mu1zhim....@diskless.uio.no

Reply via email to