Comment 2 for bug 611256

Wouter van Bommel (woutervb) wrote :

Running debmirror with the following script:

---------------------------------------------------------------------------

#### Start script to automate building of Ubuntu mirror #####
## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETE D

#!/bin/bash

## Setting variables with explanations.

#
# Don't touch the user's keyring, have our own instead
#
export GNUPGHOME=/home/mirrorkeyring

# Arch= -a # Architecture. For Ubuntu can be i386, powerpc or amd64 .
# sparc, only starts in dapper, it is only the later models of sparc.
#
arch=amd64

# Minimum Ubuntu system requires main, restricted
# Section= -s # Section (One of the following - main/restricted/univer se/multiverse).
# You can add extra file with $Section/debian-installer. ex: main/debian-install er,universe/debian-installer,multiverse/debian-installer,restricted/debian-insta ller
#
section=main,restricted,universe,multiverse,main/debian-installer,universe/debia n-installer,multiverse/debian-installer,restricted/debian-installer

# Release= -d # Release of the system (Dapper, Edgy, Feisty, Gutsy, Ha rdy, Intrepid), and the -updates and -security ( -backports can be added if desi red)
#
release=hardy,hardy-updates,hardy-security,hardy-backports,lucid,lucid-updates,l ucid-backports,lucid-security

# Server= -h # Server name, minus the protocol and the path at the en d
# CHANGE "*" to equal the mirror you want to create your mirror from. au. in Aus tralia ca. in Canada.
# This can be found in your own /etc/apt/sources.list file, assuming you have Ub untu installed.
#
server=nl.archive.ubuntu.com

# Dir= -r # Path from the main server, so http://my.web.server/$di r, Server dependant
#
inPath=/ubuntu

# Proto= -e # Protocol to use for transfer (http, ftp, hftp, rsync)
# Choose one - http is most usual the service, and the service must be avaialbe on the server you point at.
#
proto=http

# Outpath= # Directory to store the mirror in
# Make this a full path to where you want to mirror the material.
#
outPath=/var/spool/apt-mirror

# The --nosource option only downloads debs and not deb-src's
# The --progress option shows files as they are downloaded
# --source \ in the place of --no-source \ if you want sources also.
# --nocleanup Do not clean up the local mirror after mirroring is complete. Use this option to keep older repository
# Start script
#
debmirror -a $arch \
                --no-source \
                -s $section \
                -h $server \
                -d $release \
                -r $inPath \
                --progress \
                -e $proto \
                $outPath

#### End script to automate building of Ubuntu mirror ####

---------------------------------------------------------------------------

lighttpd is running with the default settings

---------------------------------------------------------------------------

in /var/www 2 symlinks are created:
  ubuntu -> /var/spool/apt-mirror/
  security -> /var/spool/apt-mirror/

---------------------------------------------------------------------------

Trying to do a network install (debian lts 8.04) with the following preseed file fails

---------------------------------------------------------------------------

# what to install
bootstrap-base base-installer/kernel/image select linux-server
bootstrap-base base-installer/kernel/override-image string linux-server
d-i base-installer/kernel/override-image string linux-server
d-i pkgsel/install-language-support boolean false
d-i pkgsel/language-pack-patterns string

tasksel tasksel/first multiselect ubuntu-server

d-i hw-detect/start_pcmcia boolean flase

# select which mirror (our own) to install
d-i mirror/country string enter information manually
d-i mirror/http/hostname string vulcan.pp-dcs.nl
d-i mirror/http/directory string /ubuntu
d-i mirror/suite string hardy
d-i mirror/http/proxy string

d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string vulcan.pp-dcs.nl
d-i apt-setup/security_path string /security

d-i apt-setup/local0/repository string http://vulcan.pp-dcs.nl/pharmapartners custom esx
d-i apt-setup/local0/comment string local server
d-i apt-setup/local0/source boolean false
d-i debian-installer/allow_unauthenticated string true

# set the languages and keyboard
d-i console-keymaps-at/keymap select us
d-i debian-installer/locale string en_US

# some time settings
d-i time/zone string Europe/Amsterdam
d-i clock-setup/utc boolean false

# which sources do we want
d-i apt-setup/non-free boolean true
d-i apt-setup/universe boolean true
d-i apt-setup/multiverse boolean true
d-i apt-setup/backports boolean true

# adittional packages
d-i pkgsel/include string openssh-server ntp

# automatic restart afther first stage
d-i finish-install/reboot_in_progress note

# first user
d-i passwd/user-fullname string Management account
d-i passwd/username string management
d-i passwd/user-password password management
d-i passwd/user-password-again password management

# privacy concern
popularity-contest popularity-contest/participate boolean false

# partition
d-i partman-auto/select_disk select /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/choose_recipe select multi
#d-i partman-auto/choose_recipe select atomic
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true

---------------------------------------------------------------------------

When using apache (default settings) the installation does work fine, while using lighttpd it does not.