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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipck
Commits
89bdb9a6
Commit
89bdb9a6
authored
10 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into copying
parents
01e22004
dc654fac
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/rootfs/hold_packages
+5
-0
5 additions, 0 deletions
contrib/rootfs/hold_packages
scripts/remaster_rootfs.sh
+21
-9
21 additions, 9 deletions
scripts/remaster_rootfs.sh
with
26 additions
and
9 deletions
contrib/rootfs/hold_packages
0 → 100644
+
5
−
0
View file @
89bdb9a6
#List of packages that must not be upgraded or deleted
#during the remaster process.
#required because of launchpad bug #1373033
ubiquity
This diff is collapsed.
Click to expand it.
scripts/remaster_rootfs.sh
+
21
−
9
View file @
89bdb9a6
...
...
@@ -70,17 +70,22 @@ function prepare_install()
apt-get update
}
function
install
_packages_from_file
()
function
get
_packages_from_file
()
{
FILENAME
=
"
$1
"
APT_OPTIONS
=
$2
if
[
!
-e
"
$FILENAME
"
]
;
then
echo
"Error: package file
$FILENAME
does not exist!"
exit
3
fi
PKGS
=
$(
grep
-v
"^#"
"
$FILENAME
"
|
tr
'\n'
' '
)
echo
"
$(
grep
-v
"^#"
"
$FILENAME
"
|
tr
'\n'
' '
)
"
}
function
install_packages_from_file
()
{
APT_OPTIONS
=
$2
PKGS
=
$(
get_packages_from_file
"
$1
"
)
aptitude
install
-y
$APT_OPTIONS
$PKGS
}
...
...
@@ -131,18 +136,25 @@ function copy_modprobe_d()
update-initramfs
-u
}
function
prevent_ubiquity_update
()
function
hold_packages
()
{
echo
"ubiquity hold"
| dpkg
--set-selections
for
PKG
in
$@
;
do
echo
"
$(
echo
"
$PKG
"
|
tr
"[:blank:]"
)
hold"
| dpkg
--set-selections
done
}
function
allow_ubiquity_update
()
function
unhold_packages
()
{
echo
"ubiquity install"
| dpkg
--set-selections
for
PKG
in
$@
;
do
echo
"
$(
echo
"
$PKG
"
|
tr
-d
"[:blank:]"
)
install"
| dpkg
--set-selections
done
}
divert_initctl
prevent_ubiquity_update
#required because of launchpad bug #1373033
PKGS_TO_HOLD
=
$(
get_packages_from_file
"
$CONTRIB_DIR
/hold_packages"
)
hold_packages
$PKGS_TO_HOLD
prepare_install
copy_modprobe_d
...
...
@@ -157,7 +169,7 @@ patch_all "$SCRIPT_DIR/patches/" "/"
#echo "compiling glib2 schemas..."
#glib-compile-schemas /usr/share/glib-2.0/schemas
allow_ubiquity_update
#required because of launchpad bug #1373033
unhold_packages
$PKGS_TO_HOLD
revert_initctl
finalize
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