Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 27, 2016
1 parent 9d2a7f1 commit 15e8fb1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/fai-mirror
Expand Up @@ -80,7 +80,6 @@ initialize() {
# TODO: root is only needed when FAI_DEBMIRROR is defined. Then we
# must mount a directory

debdist=$(echo "$FAI_DEBOOTSTRAP" | awk '{print $1}')
aptcache=$mirrordir/aptcache # holds the package cache data
archivedir=$aptcache/var/cache/apt/archives
statefile=$aptcache/statefile
Expand All @@ -106,10 +105,6 @@ initialize() {
aptoptions="$aptoptions -o APT::Architecture=$arch" # add architecture
fi

# not needed
# -o APT::Get::ReInstall
# ."-o APT::Get::Download-Only=true -o Aptitude::Cmd-Line::Download-Only=true "

# we only need some empty dirs
set -e
mkdir -p $archivedir/partial $aptcache/etc/apt/preferences.d $aptcache/var/lib/apt/lists/partial $aptcache/var/log/apt
Expand Down Expand Up @@ -245,10 +240,8 @@ export MAXPACKAGES
initialize

# if we are using nfs mounts for Debian mirror, this may fail here, since inside a chroot environment different dir are used

# if sources.list includes file AND FAI_DEBMIRROR is defined we have to mount
# otherwise mounting is not needed. call task_mirror

if [ "$FAI_DEBMIRROR" ]; then
mkdir -p $MNTPOINT
mount -r $FAI_DEBMIRROR $MNTPOINT || exit 9
Expand Down

0 comments on commit 15e8fb1

Please sign in to comment.