Commit 9dfbf725 authored by Christopher Spinrath's avatar Christopher Spinrath

Aenderung des Offline-Repository-Aufbaus

Strukturaenderung um Speicherplatz zu sparen ( Multi-Arch Packete werden nur noch einmal gepseichert )
Das Repository kann nicht mehr als solches in apt eingebunden werden, sondern nur noch als cache-overlay
Die Aenderungen sind _nicht_ abwaertskompatibel!
parent 70d5b8c3
#!/bin/bash
PKG_LIST="linux-firmware-nonfree swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape"
PKG_LIST="openssh-server linux-firmware-nonfree swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape"
DESTINATION="/isodevice"
SECTIONNAME=lipoffline
ARCHITECTURE=$1
ARCHIVE_DESTINATION=$DESTINATION/archives
REL_DISTS_PATH=dists/main/$SECTIONNAME/binary-$ARCHITECTURE
PKG_DESTINATION=$ARCHIVE_DESTINATION/$REL_DISTS_PATH
PKG_DESTINATION=$DESTINATION/archives
#begin
echo "creating structure..."
mkdir -p $PKG_DESTINATION/
echo "done."
echo "downloading archives. this may take some time..."
wget -nc -P $PKG_DESTINATION $(apt-get -o APT::Architecture=$ARCHITECTURE install --reinstall --print-uris -qq $PKG_LIST | cut -d"'" -f2)
wget -nc -P $PKG_DESTINATION $(apt-get install --reinstall --print-uris -qq $PKG_LIST | cut -d"'" -f2)
#wget -nc -P $PKG_DESTINATION $(apt-get -o APT::Architecture=$ARCHITECTURE install --reinstall --allow-unauthenticated --print-uris -qq $PKG_LIST | cut -d"'" -f2)
echo "done."
echo "creating meta files..."
cd $ARCHIVE_DESTINATION
apt-ftparchive packages $REL_DISTS_PATH > $REL_DISTS_PATH/Packages
gzip $REL_DISTS_PATH/Packages
echo "done."
#end.
#!/bin/bash
PKG_LIST="cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape"
PKG_LIST="openssh-server swi-prolog cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape"
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $UID -ne 0 ]]; then
......@@ -15,13 +15,13 @@ if [ -n $MPOINT ]; then
MERGE_DIR=$(mktemp -d)
CACHE_DIR="/var/cache/apt/archives/"
ARCH="i386"
if [ "$(uname -m)" = "x86_64" ]; then
ARCH="amd64"
fi
OVERLAY_DIR="$SOURCE_PATH/archives/dists/main/lipoffline/binary-$ARCH/"
echo "Detected architecture $ARCH -> overlay dir is $OVERLAY_DIR"
# ARCH="i386"
# if [ "$(uname -m)" = "x86_64" ]; then
# ARCH="amd64"
# fi
# OVERLAY_DIR="$SOURCE_PATH/archives/dists/main/lipoffline/binary-amd64/"
OVERLAY_DIR="$SOURCE_PATH/archives/"
echo "-> overlay dir is $OVERLAY_DIR"
# test if there is already an overlayfs at CACHE_DIR
if [ "$(stat --format %m "$CACHE_DIR")" = "${CACHE_DIR%/}" ]
......@@ -38,7 +38,7 @@ else
echo "No stick, no repo; good luck."
fi
apt-get install $APT_OPTIONS $PKG_LIST #exec lip install script here?
apt-get install $PKG_LIST #exec lip install script here?
#end;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment