4
# Disable netinst CD image in sources.list if any other sources are present
5
if [ -e /cdrom/.disk/base_installable ] && \
6
[ -e /cdrom/.disk/cd_type ] && \
7
[ "$(cat /cdrom/.disk/cd_type)" = not_complete ] && \
8
grep -q "^deb \(ht\|f\)tp" /target/etc/apt/sources.list; then
9
logger -t finish-install "Disabling netinst CD in sources.list"
10
sed -i "/^deb cdrom:/s/^/#/" /target/etc/apt/sources.list
11
log-output -t finish-install chroot /target apt-get update