Skip to content
Snippets Groups Projects
Commit 782002a5 authored by OSAK Buildhauer's avatar OSAK Buildhauer
Browse files

Added first dummy-version of create_offlinerepo.sh

parent 05f979d9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
set -x
iso_file="ubuntu-18.04.1-desktop-amd64.iso"
workspace="/workspace"
packages="vim htop"
rm -rf "$workspace"/offlinerepo
mkdir -p "$workspace"/offlinerepo
7z e -so "$iso_file" casper/filesystem.squashfs > "$workspace"/offlinerepo/filesystem.squashfs
unsquashfs -no-xattrs -d "$workspace"/offlinerepo/squashfs-root "$workspace"/offlinerepo/filesystem.squashfs
apt-get -o Dir="$workspace"/offlinerepo/squashfs-root update
apt-get -o Dir="$workspace"/offlinerepo/squashfs-root upgrade --print-uris -qq
apt-get -o Dir="$workspace"/offlinerepo/squashfs-root install --reinstall --print-uris -qq $packages
# TODO: dpkg-scanpackages ...
# Maybe sort files into the usual directory structure ("pool/main/g/glib2.0...")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment