Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
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
lipck
Commits
7dbb10dc
Commit
7dbb10dc
authored
Nov 2, 2014
by
Christopher Spinrath
Browse files
Options
Downloads
Patches
Plain Diff
Move functions from remaster_rootfs to common_functions
The moved functions will be used by fill_offline repo, too.
parent
331b4378
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/common_functions.sh
+30
-0
30 additions, 0 deletions
scripts/common_functions.sh
scripts/fill_offline_repo.sh
+0
-0
0 additions, 0 deletions
scripts/fill_offline_repo.sh
scripts/remaster_rootfs.sh
+0
-30
0 additions, 30 deletions
scripts/remaster_rootfs.sh
with
30 additions
and
30 deletions
scripts/common_functions.sh
+
30
−
0
View file @
7dbb10dc
...
...
@@ -56,3 +56,33 @@ function install_debs()
echo
"done."
done
}
function
divert_initctl
()
{
dpkg-divert
--local
--rename
--add
/sbin/initctl
ln
-s
/bin/true /sbin/initctl
# Fix sysvinit legacy invoke-rc.d issue with nonexisting scripts
dpkg-divert
--local
--rename
--add
/usr/sbin/invoke-rc.d
ln
-s
/bin/true /usr/sbin/invoke-rc.d
}
function
revert_initctl
()
{
rm
/sbin/initctl
dpkg-divert
--local
--rename
--remove
/sbin/initctl
# Fix sysvinit legacy invoke-rc.d issue with nonexisting scripts
rm
/usr/sbin/invoke-rc.d
dpkg-divert
--local
--rename
--remove
/usr/sbin/invoke-rc.d
}
function
get_packages_from_file
()
{
FILENAME
=
"
$1
"
if
[
!
-e
"
$FILENAME
"
]
;
then
echo
"Error: package file
$FILENAME
does not exist!"
exit
3
fi
echo
"
$(
grep
-v
"^#"
"
$FILENAME
"
|
tr
'\n'
' '
)
"
}
This diff is collapsed.
Click to expand it.
legacy_
scripts/
create
_offline_repo.sh
→
scripts/
fill
_offline_repo.sh
+
0
−
0
View file @
7dbb10dc
File moved
This diff is collapsed.
Click to expand it.
scripts/remaster_rootfs.sh
+
0
−
30
View file @
7dbb10dc
...
...
@@ -40,24 +40,6 @@ if [ ! -d "$SCRIPT_DIR" ]; then
exit
2
fi
function
divert_initctl
()
{
dpkg-divert
--local
--rename
--add
/sbin/initctl
ln
-s
/bin/true /sbin/initctl
# Fix sysvinit legacy invoke-rc.d issue with nonexisting scripts
dpkg-divert
--local
--rename
--add
/usr/sbin/invoke-rc.d
ln
-s
/bin/true /usr/sbin/invoke-rc.d
}
function
revert_initctl
()
{
rm
/sbin/initctl
dpkg-divert
--local
--rename
--remove
/sbin/initctl
# Fix sysvinit legacy invoke-rc.d issue with nonexisting scripts
rm
/usr/sbin/invoke-rc.d
dpkg-divert
--local
--rename
--remove
/usr/sbin/invoke-rc.d
}
function
prepare_install
()
{
if
[
-e
"
$CONTRIB_DIR
/lip_sources.list"
]
;
then
...
...
@@ -70,18 +52,6 @@ function prepare_install()
apt-get update
}
function
get_packages_from_file
()
{
FILENAME
=
"
$1
"
if
[
!
-e
"
$FILENAME
"
]
;
then
echo
"Error: package file
$FILENAME
does not exist!"
exit
3
fi
echo
"
$(
grep
-v
"^#"
"
$FILENAME
"
|
tr
'\n'
' '
)
"
}
function
install_packages_from_file
()
{
APT_OPTIONS
=
$2
...
...
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