Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
osak
TARDIS
Commits
5fbc2ee0
Commit
5fbc2ee0
authored
Jan 09, 2019
by
OSAK Buildhauer
Browse files
Added downloading and index generation to create_offlinerepo.sh
parent
782002a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_offlinerepo.sh
View file @
5fbc2ee0
...
...
@@ -5,6 +5,7 @@ set -x
iso_file
=
"ubuntu-18.04.1-desktop-amd64.iso"
workspace
=
"/workspace"
dest
=
"archive"
packages
=
"vim htop"
rm
-rf
"
$workspace
"
/offlinerepo
...
...
@@ -12,9 +13,17 @@ 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 ...
{
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
}
|
cut
-d
"'"
-f2
|
while
read
url
;
do
wget
-nc
-P
"
$dest
"
"
$url
"
;
done
{
cd
"
$dest
"
dpkg-scanpackages
.
|
gzip
>
Packages.gz
}
# Maybe sort files into the usual directory structure ("pool/main/g/glib2.0...")
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment