No 'apt-get update' in base-installer on CD installs?
In the current version of base-installer postinst, 'apt-get update' is
only called if not /cdrom/.disk/base_installable exists. Why is this?
I suspect the following patch is better, but I do not understand why
the files are moved into /target/, so I am not sure. I only moved the
'fi' line and reindented.
Anyone got some clues to spare?
Index: postinst
===================================================================
RCS file: /cvs/debian-boot/debian-installer/tools/base-installer/debian/postinst,v
retrieving revision 1.32
diff -u -3 -p -u -r1.32 postinst
--- postinst 7 Feb 2003 14:25:25 -0000 1.32
+++ postinst 7 Feb 2003 15:34:12 -0000
@@ -98,15 +98,16 @@ else
APTDIR=`echo $DIRECTORY | tr "/" "_"`
DEBOOTSTRAPLIST="/target/var/lib/apt/lists/debootstrap.invalid_dists_${DISTRIBUTION}"
APTLIST="/target/var/lib/apt/lists/${MIRROR}${APTDIR}_dists_${DISTRIBUTION}"
+fi
- mv ${DEBOOTSTRAPLIST}_Release ${APTLIST}_Release
- mv ${DEBOOTSTRAPLIST}_main_binary-${ARCH}_Packages ${APTLIST}_main_binary-${ARCH}_Packages
+mv ${DEBOOTSTRAPLIST}_Release ${APTLIST}_Release
+mv ${DEBOOTSTRAPLIST}_main_binary-${ARCH}_Packages ${APTLIST}_main_binary-${ARCH}_Packages
- COMPONENTS=`echo $COMPONENTS | tr , " "`
+COMPONENTS=`echo $COMPONENTS | tr , " "`
- echo "deb ${PROTOCOL}://${MIRROR}${DIRECTORY} ${DISTRIBUTION} $COMPONENTS" > /target/etc/apt/sources.list
+echo "deb ${PROTOCOL}://${MIRROR}${DIRECTORY} ${DISTRIBUTION} $COMPONENTS" > /target/etc/apt/sources.list
- PATH=$PATH:/target/usr/bin:/target/bin:/target/usr/sbin:/target/sbin \
+PATH=$PATH:/target/usr/bin:/target/bin:/target/usr/sbin:/target/sbin \
LD_LIBRARY_PATH=/usr/lib:/lib:/target/usr/lib:/target/lib \
/target/usr/bin/apt-get \
-o Dir::State=/target/var/lib/apt \
@@ -118,5 +119,4 @@ else
-o Dir::Bin::dpkg=/target/usr/bin/dpkg \
-o Dpkg::Options::=--root=/target \
update
-fi
exit 0
Reply to: