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
3734a844
Commit
3734a844
authored
3 years ago
by
Valentin Bruch
Browse files
Options
Downloads
Patches
Plain Diff
optionally use offline repo in assemble_image.sh
parent
29076e14
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assemble_image.sh
+15
-2
15 additions, 2 deletions
assemble_image.sh
with
15 additions
and
2 deletions
assemble_image.sh
+
15
−
2
View file @
3734a844
...
...
@@ -8,6 +8,13 @@ img1="kubuntu-20.04.3-desktop-amd64.iso"
img2
=
"kubuntu-21.10-desktop-amd64.iso"
bootimg
=
"
$img1
"
:
${
workspace
:
=
"/workspace"
}
:
${
USE_OFFLINE_REPO
:
=0
}
if
[[
"
$USE_OFFLINE_REPO
"
-eq
1
]]
then
offlinerepo1
=
'archives-focal'
offlinerepo2
=
'archives-impish'
image_size
=
'13G'
fi
# mtools, ddrescure, fdisk, grub, 7z
rm
-rf
"
$workspace
/part_files"
...
...
@@ -34,8 +41,14 @@ cp grub_template.cfg "$workspace/part_files/boot/grub/grub.cfg"
fill_grub_config_template
"
$img1
"
"
$workspace
/part_files/boot/grub/grub.cfg"
fill_grub_config_template
"
$img2
"
"
$workspace
/part_files/boot/grub/grub.cfg"
#./create_offlinerepo.sh "$workspace/part_files/archives" "$img1" $(grep '^[^#]' packages | cut -d'|' -f 2)
#./create_offlinerepo.sh "$workspace/part_files/archives" "$img2" $(grep '^[^#]' packages | cut -d'|' -f 2)
if
[[
"
$USE_OFFLINE_REPO
"
-eq
1
]]
then
# Note: in practice you might still want to create the offline repo separately and just copy or move the directories here.
# Creating the offline repo requires root privileges and can be quite slow.
./create_offlinerepo.sh
"
$workspace
/part_files/
$offlinerepo1
"
"
$img1
"
$(
grep
'^[^#]'
packages |
cut
-d
'|'
-f
2
)
./create_offlinerepo.sh
"
$workspace
/part_files/
$offlinerepo2
"
"
$img2
"
$(
grep
'^[^#]'
packages |
cut
-d
'|'
-f
2
)
fi
cp
packages
"
$workspace
/part_files/packages"
# The following command is dangerous: If offline repo is missing and "download updates while installing" is selected (default), this will install ALL listed packages during the installation.
#echo "ubiquity ubiquity/keep-installed string $(grep '^[^#]' packages | cut -d'|' -f 2 | tr '\n' ' ')" >> "$workspace/part_files/preseed/lip.seed"
...
...
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