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
e180a9ae
Commit
e180a9ae
authored
10 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into copying
parents
17fb5008
5bba76f1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/remaster_rootfs.sh
+22
-16
22 additions, 16 deletions
scripts/remaster_rootfs.sh
with
22 additions
and
16 deletions
scripts/remaster_rootfs.sh
+
22
−
16
View file @
e180a9ae
...
...
@@ -94,15 +94,32 @@ function install_packages_from_file()
aptitude
install
-y
$APT_OPTIONS
$PKGS
}
function
install_lang_packages
()
{
#the content of this function is extracted from UCK
MISSING_LANG_PKG
=
"
$(
check-language-support
-l
de_DE
)
"
MISSING_LANG_PKG
=
"
$(
check-language-support
-l
en_US
)
$MISSING_LANG_PKG
"
# check for missing packages for de_DE and en_US
if
[
-n
"
$MISSING_LANG_PKG
"
]
;
then
aptitude
install
$MISSING_LANG_PKG
-y
fi
EXTRA_LANG_PKG
=
"
$(
dpkg-query
--show
|
cut
-f1
|
grep
-E
'^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)'
|
grep
-Ev
"[-](de|en)
\>
"
)
"
# remove extra language packages
if
[
-n
"
$EXTRA_LANG_PKG
"
]
;
then
aptitude purge
$EXTRA_LANG_PKG
-y
fi
}
function
install_packages
()
{
apt-get dist-upgrade
--assume-yes
--force-yes
apt-get
install
aptitude
-y
#aptitude full-upgrade -y # make sure we have the newest versions
# Some daily images do not have a kernel ?!?
#uncomment this if you remaster a daily build (fix kernel version!)
#Some daily images do not have a kernel;
#ensure that a valid kernel is installed
KERNEL_PKG
=
linux-signed-generic-lts-trusty
[
"
$(
uname
-m
)
"
==
"x86_64"
]
||
KERNEL_PKG
=
linux-image-generic-lts-trusty
aptitude reinstall
$KERNEL_PKG
-y
...
...
@@ -111,18 +128,7 @@ function install_packages()
install_packages_from_file
"
$CONTRIB_DIR
/pre_installed_packages"
""
install_packages_from_file
"
$CONTRIB_DIR
/pre_installed_packages.without-recommends"
"--without-recommends"
MISSING_LANG_PKG
=
"
$(
check-language-support
-l
de_DE
)
"
MISSING_LANG_PKG
=
"
$(
check-language-support
-l
en_US
)
$MISSING_LANG_PKG
"
# check for missing packages for de_DE and en_US
if
[
-n
"
$MISSING_LANG_PKG
"
]
;
then
aptitude
install
$MISSING_LANG_PKG
-y
fi
EXTRA_LANG_PKG
=
"
$(
dpkg-query
--show
|
cut
-f1
|
grep
-E
'^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)'
|
grep
-Ev
"[-](de|en)
\>
"
)
"
# remove extra language packages
if
[
-n
"
$EXTRA_LANG_PKG
"
]
;
then
aptitude purge
$EXTRA_LANG_PKG
-y
fi
install_lang_packages
install_debs
"
$CONTRIB_DIR
/debs/"
}
...
...
@@ -132,7 +138,7 @@ function finalize()
echo
-n
"Europe/Berlin"
>
/etc/timezone
rm
-rf
/var/crash/
*
#TODO: verify
if
[
-z
"
$LIPCK_HAS_APT_CACHE
"
]
then
rm
-rf
/var/cache/apt/
*
...
...
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