Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TARDIS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
TARDIS
Commits
2d7f46ec
Commit
2d7f46ec
authored
6 years ago
by
OSAK Buildhauer
Browse files
Options
Downloads
Patches
Plain Diff
Made create_offlinerepo.sh more tool-like
parent
5fbc2ee0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_offlinerepo.sh
+15
-4
15 additions, 4 deletions
create_offlinerepo.sh
with
15 additions
and
4 deletions
create_offlinerepo.sh
+
15
−
4
View file @
2d7f46ec
#!/bin/bash
set
-e
set
-x
iso_file
=
"ubuntu-18.04.1-desktop-amd64.iso"
usage
()
{
echo
"usage: create_offlinerepo.sh repodir isofile [list of packages]"
>
&2
echo
>
&2
echo
"Downloads all packages required to fully update the system in 'isofile' and"
>
&2
echo
"to install the listed packages and adds them to the package archive in 'repodir'."
>
&2
exit
1
}
dest
=
"
$1
"
shift
||
usage
iso_file
=
"
$1
"
shift
||
usage
packages
=
"
$@
"
workspace
=
"/workspace"
dest
=
"archive"
packages
=
"vim htop"
rm
-rf
"
$workspace
"
/offlinerepo
mkdir
-p
"
$workspace
"
/offlinerepo
...
...
@@ -23,6 +33,7 @@ apt-get -o Dir="$workspace"/offlinerepo/squashfs-root update
{
cd
"
$dest
"
rm
-rf
"
$dest
"
/Packages.
*
dpkg-scanpackages
.
|
gzip
>
Packages.gz
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment