Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
lipstick
Commits
cb708156
Commit
cb708156
authored
3 years ago
by
Valentin Bruch
Browse files
Options
Downloads
Patches
Plain Diff
changed offline repo directory name: include DISTRIB_CODENAME
parent
2c04efb4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
preseed/lip-early.sh
+1
-1
1 addition, 1 deletion
preseed/lip-early.sh
scripts/liprepoctl.sh
+1
-1
1 addition, 1 deletion
scripts/liprepoctl.sh
with
2 additions
and
2 deletions
preseed/lip-early.sh
+
1
−
1
View file @
cb708156
#!/bin/sh
#!/bin/sh
sed
-i
-e
'/ubuntu\.com/d'
-e
'/^$/d'
/root/etc/apt/sources.list
sed
-i
-e
'/ubuntu\.com/d'
-e
'/^$/d'
/root/etc/apt/sources.list
sed
-i
-e
's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g'
/root/usr/bin/apt-clone
# only relevant for kubuntu <= 20.04
sed
-i
-e
's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g'
/root/usr/bin/apt-clone
# only relevant for kubuntu <= 20.04
echo
"deb [ arch=amd64 trusted=yes ] file:///isodevice/archives
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
lip"
>>
/root/etc/apt/sources.list
echo
"deb [ arch=amd64 trusted=yes ] file:///isodevice/archives
-
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
lip"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-security main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-security main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-updates main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-updates main restricted universe multiverse"
>>
/root/etc/apt/sources.list
...
...
This diff is collapsed.
Click to expand it.
scripts/liprepoctl.sh
+
1
−
1
View file @
cb708156
...
@@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE
...
@@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE
function
install_repo
()
function
install_repo
()
{
{
echo
"# offline repository of the linux install party
echo
"# offline repository of the linux install party
deb [ arch=amd64 trusted=yes ] file://
$1
/archives
$DIST_CODENAME
lip"
>
"
$FILENAME
"
deb [ arch=amd64 trusted=yes ] file://
$1
/archives
-
$DIST_CODENAME
$DIST_CODENAME
lip"
>
"
$FILENAME
"
}
}
function
uninstall_repo
()
function
uninstall_repo
()
...
...
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