<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi All,</p>
<p><br>
</p>
<p>I didn't see this original post show up on the current list, not
sure, so re-sending.<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Is the apt-setup-udeb current ?</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Wed, 22 Feb 2017 19:56:24 -0600</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Deb McLemore <a class="moz-txt-link-rfc2396E" href="mailto:debmc@linux.vnet.ibm.com"><debmc@linux.vnet.ibm.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:ubuntu-installer@lists.ubuntu.com">ubuntu-installer@lists.ubuntu.com</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:jmkerr@au1.ibm.com">jmkerr@au1.ibm.com</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p>Hi All,</p>
<p>Let me start this thread by making some observations and then
based on what others deem investigative we can leave it at that.</p>
<p>We are using live-build to build some live systems which are
using the config/binary property of LB_DEBIAN_INSTALL="live".</p>
<p>Other properties of interest are
LB_DEBIAN_INSTALLER_GUI="false", Image is for architecture of
amd64, Distribution for yakkety.</p>
<p>We are currently using the live-build version of 1:20161216 (v5
or so, the latest in the git repo).</p>
<p>Most scenarios are working wonderfully, that's the good news.
The observation made is the following:</p>
<p>When attempting to use a <b>preseed.cfg</b> to by-pass ALL the
manual menu prompts, etc. we hit a unique (or maybe corner-case
?) scenario which may or may not be main-line.<br>
</p>
<p>We have a CDROM image built for the live-build binary, but its
sparsely populated, expecting to do mirror pulls of the majority
of the packages to complete the installation (like a netinst,
but the type is "live", so there is a pool archive available).
All goes well until almost the end of the
apt-setup-udeb.postinst step. This is where we have debugged
the root cause to be the <b>/var/lib/dpkg/info/apt-setup-udeb.postinst</b>
script. The script in the udeb of <b>apt-setup-udeb_0.104ubuntu5_amd64.udeb</b>
seems to not be what is shown in the current git tree and the
revision history on the <b>apt-setup-udeb.postinst</b> script
doesn't seem to reflect that its changed recently, so we are
wondering why the contents of not only this script but of the
entire <b>apt-setup-udeb_0.104ubuntu5_amd64.udeb</b> appears to
be out-of-sync.</p>
<p>The debugging problem came down to a use case where the /cdrom
was NOT mounted and so the conditions in the OLD <b>apt-setup-udeb.postinst</b>
script failed the first check to make a backup copy of the <b>sources.list</b>
file which left the entire <b>sources.lis</b><b>t</b> reverted
back to only CDROM contents when we had properly seeded the <b>sources.list</b>
to setup the mirrors and actually did the entire downloads
through installing the software, but at the very end of the
install it was flagged and install stopped. We first saw the
file named <b>sources.list.apt-setup</b> showing up in <b>/target/etc/apt</b>
which was at first unexplainable since we had break points
earlier which had showed the <b>sources.list</b> properly setup
and working fine.</p>
<u><b>Two questions:</b></u><br>
<br>
1 - Is this a packaging problem and the levels of scripts and
content of the <b>apt-setup-udeb</b> needs to be refreshed ?<br>
2 - Is there a latest <b>apt-setup-udeb</b> you can point us to
for our test efforts ? We are working around this for now.<br>
<p>Here is a brief comparison of the two levels we've queried (the
file contents and number of scripts differ as well, the
following is just a high-level introduction to the hierarchy).<br>
</p>
<p>********************************************************************
</p>
<p><u>apt-setup-udeb_0.104ubuntu5_amd64.udeb<br>
</u></p>
<p>$ dpkg -c apt-setup-udeb_0.104ubuntu5_amd64.udeb<br>
drwxr-xr-x root/root 0 2016-06-08 12:17 ./<br>
drwxr-xr-x root/root 0 2016-06-08 12:17 ./usr/<br>
drwxr-xr-x root/root 0 2016-06-08 12:17 ./usr/bin/<br>
-rwxr-xr-x root/root 2061 2016-06-08 12:08
./usr/bin/apt-setup<br>
-rwxr-xr-x root/root 1204 2016-06-08 12:08
./usr/bin/apt-setup-signed-release<br>
-rwxr-xr-x root/root 3582 2016-06-08 12:08
./usr/bin/apt-setup-verify<br>
drwxr-xr-x root/root 0 2016-06-08 12:17 ./usr/lib/<br>
drwxr-xr-x root/root 0 2016-06-08 12:17
./usr/lib/apt-setup/<br>
drwxr-xr-x root/root 0 2016-06-08 12:17
./usr/lib/apt-setup/generators/<br>
-rwxr-xr-x root/root 644 2016-06-08 12:08
./usr/lib/apt-setup/generators/01setup<br>
-rwxr-xr-x root/root 1197 2016-06-08 12:08
./usr/lib/apt-setup/generators/60local<br>
-rwxr-xr-x root/root 2104 2016-06-08 12:08
./usr/lib/apt-setup/generators/90services-select<br>
-rwxr-xr-x root/root 1785 2016-06-08 12:08
./usr/lib/apt-setup/generators/91security<br>
-rwxr-xr-x root/root 925 2016-06-08 12:08
./usr/lib/apt-setup/generators/95overlay</p>
<p><u>$ cat DEBIAN/postinst</u><br>
#!/bin/sh<br>
set -e<br>
<br>
. /usr/share/debconf/confmodule<br>
<br>
# If we're installing from CD, then we won't need this
sources.list until<br>
# nearly the end of pkgsel; the one generated during base system<br>
# installation will do just fine until then.<br>
if [ -f /cdrom/.disk/base_installable ]; then<br>
cp -a /target/etc/apt/sources.list
/target/etc/apt/sources.list.base<br>
fi<br>
<br>
apt-setup --log-output /target<br>
<br>
if [ -f /target/etc/apt/sources.list.base ]; then<br>
logger -t apt-setup 'Using only basic sources for CD
installation'<br>
mv -f /target/etc/apt/sources.list \<br>
/target/etc/apt/sources.list.apt-setup<br>
mv -f /target/etc/apt/sources.list.base
/target/etc/apt/sources.list<br>
in-target apt-get -o <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="APT::Get::Download=false">APT::Get::Download=false</a>
\<br>
-o <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="APT::Get::List-Cleanup=false">APT::Get::List-Cleanup=false</a>
update<br>
fi<br>
<br>
exit 0<br>
</p>
<p>********************************************************************</p>
<p>The following is from the latest builds:<br>
</p>
<p>$ ls -altr<br>
total 356<br>
-rw-rw-r-- 1 debmc debmc 348699 Feb 22 15:20
~ubuntu-installer_apt-setup_master-r1163.tgz<br>
</p>
<p>$ ls -altr ~ubuntu-installer/apt-setup/master/generators<br>
total 60<br>
-rwxr-xr-x 1 root root 2138 Feb 22 15:20 93backports<br>
-rwxr-xr-x 1 root root 2122 Feb 22 15:20 92updates<br>
-rwxr-xr-x 1 root root 1301 Feb 22 15:20 91security<br>
-rwxr-xr-x 1 root root 1897 Feb 22 15:20 90services-select<br>
-rwxr-xr-x 1 root root 1197 Feb 22 15:20 60local<br>
-rwxr-xr-x 1 root root 6248 Feb 22 15:20 50mirror.ubuntu<br>
-rwxr-xr-x 1 root root 5750 Feb 22 15:20 50mirror<br>
-rwxr-xr-x 1 root root 4195 Feb 22 15:20 41cdset<br>
-rwxr-xr-x 1 root root 3241 Feb 22 15:20 40cdrom<br>
-rwxr-xr-x 1 root root 644 Feb 22 15:20 01setup<br>
drwxr-xr-x 5 root root 4096 Feb 22 15:21 ..<br>
drwxr-xr-x 2 root root 4096 Feb 22 15:21 .</p>
<p><br>
</p>
<p><u>$ cat
~ubuntu-installer/apt-setup/master/debian/apt-setup-udeb.postinst</u><br>
#!/bin/sh<br>
set -e<br>
apt-setup --log-output /target<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>