Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
T
TARDIS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
osak
TARDIS
Commits
5fbc2ee0
Commit
5fbc2ee0
authored
Jan 09, 2019
by
OSAK Buildhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added downloading and index generation to create_offlinerepo.sh
parent
782002a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
create_offlinerepo.sh
create_offlinerepo.sh
+12
-3
No files found.
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
Markdown
is supported
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