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

Bug#919982: apt-setup: preseeded installation hangs at "Use a network mirror?"



On Sat, Jan 26, 2019 at 11:24:40AM +0100, Wolfgang Schweer wrote:
> On Fri, Jan 25, 2019 at 11:58:08PM +0000, Steve McIntyre wrote:
> > We'll come back to this again shortly. To help with that, could you
> > describe exactly what debian-edu is expecting here please, i.e. what
> > the settings in cd_type mean for the debian-edu installer?
[..]
> If the EDU BD image has 'blueray/not_complete' then this content matches 
> the blueray*) case in apt-setup, see:
> https://sources.debian.org/src/apt-setup/1:0.145/generators/50mirror/#L104
> and the image is usable for offline installation.
> This is the only change that is actually needed for the Edu BD image.
[..]
> > I'm worried that we may not have a clear solution here that can match 
> > the current expectations of both d-i and and the debian-edu setup.

Please check if the attached patch would be a solution.

Wolfgang
From 06871e666d474bdb14c7526e367cbaffbb83609c Mon Sep 17 00:00:00 2001
From: Wolfgang Schweer <wschweer@arcor.de>
Date: Sun, 3 Feb 2019 12:59:17 +0100
Subject: [PATCH] Set adjusted cd_type for incomplete BD image

If COMPLETE=0 is set, the content should rather be "bluray/not_complete" instead
of just "not_complete". This would allow one to build offline usable Edu BDs.
---
 tools/start_new_disc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/start_new_disc b/tools/start_new_disc
index 21f412f..f2abcd8 100755
--- a/tools/start_new_disc
+++ b/tools/start_new_disc
@@ -199,7 +199,11 @@ if [ $DISKNUM = 1 ] ; then
             fi
         fi
     else
-        echo "not_complete" > $CDDIR/.disk/cd_type
+        if [ $DISKTYPE = BD ] ; then
+            echo "bluray/not_complete" > $CDDIR/.disk/cd_type
+        else
+            echo "not_complete" > $CDDIR/.disk/cd_type
+        fi
     fi
 
     if [ $NUM_ARCHES -gt 1 ]; then
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature


Reply to: