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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
TARDIS
Commits
7c3b85bb
Commit
7c3b85bb
authored
6 years ago
by
OSAK Buildhauer
Browse files
Options
Downloads
Patches
Plain Diff
Finished create_offlinerepo.sh and added offlinerepo creation to build process
parent
2d7f46ec
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
assemble_image.sh
+1
-0
1 addition, 0 deletions
assemble_image.sh
create_offlinerepo.sh
+33
-5
33 additions, 5 deletions
create_offlinerepo.sh
with
34 additions
and
5 deletions
assemble_image.sh
+
1
−
0
View file @
7c3b85bb
...
...
@@ -24,6 +24,7 @@ mv "$workspace/part_files"/grub/* "$workspace/part_files"/boot/grub/
rm
-rf
"
$workspace
/part_files"
/grub
cp
"
$iso_file
"
"
$workspace
/part_files/kubuntu.iso"
./create_offlinerepo.sh
"
$workspace
/part_files/archive"
"
$iso_file
"
vim htop
rm
-f
"
$workspace
/part.img"
truncate
-s
"
$image_size
"
"
$workspace
/part.img"
...
...
This diff is collapsed.
Click to expand it.
create_offlinerepo.sh
+
33
−
5
View file @
7c3b85bb
...
...
@@ -17,24 +17,52 @@ shift || usage
packages
=
"
$@
"
workspace
=
"/workspace"
APT_SOURCE_URL_OVERRIDE
=
"http://ftp.halifax.rwth-aachen.de/ubuntu/"
rm
-rf
"
$workspace
"
/offlinerepo
mkdir
-p
"
$workspace
"
/offlinerepo
mkdir
-p
"
$dest
"
7z e
-so
"
$iso_file
"
casper/filesystem.squashfs
>
"
$workspace
"
/offlinerepo/filesystem.squashfs
unsquashfs
-no-xattrs
-d
"
$workspace
"
/offlinerepo/squashfs-root
"
$workspace
"
/offlinerepo/filesystem.squashfs
ISO_RELEASE
=
"
$(
grep
DISTRIB_CODENAME
"
$workspace
/offlinerepo/squashfs-root/etc/lsb-release"
|
cut
-d
=
-f
2-
)
"
ISO_VERSION
=
"
$(
grep
DISTRIB_RELEASE
"
$workspace
/offlinerepo/squashfs-root/etc/lsb-release"
|
cut
-d
=
-f
2-
)
"
ISO_DESCRIPTION
=
"
$(
grep
DISTRIB_DESCRIPTION
"
$workspace
/offlinerepo/squashfs-root/etc/lsb-release"
|
cut
-d
'"'
-f
2
)
"
echo
"deb
$APT_SOURCE_URL_OVERRIDE
${
ISO_RELEASE
}
main restricted universe multiverse"
>
"
$workspace
/offlinerepo/squashfs-root/etc/apt/sources.list"
echo
"deb
$APT_SOURCE_URL_OVERRIDE
${
ISO_RELEASE
}
-security main restricted universe multiverse"
>>
"
$workspace
/offlinerepo/squashfs-root/etc/apt/sources.list"
echo
"deb
$APT_SOURCE_URL_OVERRIDE
${
ISO_RELEASE
}
-updates main restricted universe multiverse"
>>
"
$workspace
/offlinerepo/squashfs-root/etc/apt/sources.list"
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
}
|
cut
-d
"'"
-f2
|
while
read
url
;
do
wget
-nc
-P
"
$dest
"
"
$url
"
;
done
apt-get
-o
Dir
=
"
$workspace
"
/offlinerepo/squashfs-root
install
--reinstall
--print-uris
-qq
$packages
{
cd
"
$dest
"
rm
-rf
"
$dest
"
/Packages.
*
dpkg-scanpackages
.
|
gzip
>
Packages.gz
}
mkdir
-p
"
$dest
/dists/
$ISO_RELEASE
/lip/binary-amd64"
(
cd
"
$dest
"
&&
dpkg-scanpackages
.
|
gzip
>
"dists/
$ISO_RELEASE
/lip/binary-amd64/Packages.gz"
)
cat
<<
EOF
> "
$dest
/dists/
$ISO_RELEASE
/lip/binary-amd64/Release"
Archive:
$ISO_RELEASE
Version:
$ISO_VERSION
Component: lip
Origin: Ubuntu
Label: Ubuntu
Architecture: amd64
EOF
touch
"
$dest
/.aptignr"
cat
<<
EOF
> "
$dest
/Release"
Origin: Ubuntu
Label: LIP Ubuntu Extra Packages
Suite:
$ISO_RELEASE
Version:
$ISO_VERSION
Codename:
$ISO_RELEASE
Date:
$(
LC_ALL
=
C
date
-u
)
Architectures: amd64
Components: lip
Description:
$ISO_DESCRIPTION
EOF
# Maybe sort files into the usual directory structure ("pool/main/g/glib2.0...")
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