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
e7604ee0
Commit
e7604ee0
authored
10 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into copying
parents
ebf964bd
18fd235f
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
scripts/remaster_rootfs.sh
+7
-17
7 additions, 17 deletions
scripts/remaster_rootfs.sh
scripts/uck_functions.sh
+18
-0
18 additions, 0 deletions
scripts/uck_functions.sh
with
25 additions
and
17 deletions
scripts/remaster_rootfs.sh
+
7
−
17
View file @
e7604ee0
...
...
@@ -46,6 +46,13 @@ if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then
source
"
$SCRIPT_DIR
/scripts/common_functions.sh"
fi
if
[
-e
"
$SCRIPT_DIR
/scripts/uck_functions.sh"
]
;
then
source
"
$SCRIPT_DIR
/scripts/uck_functions.sh"
else
echo
"Error:
$SCRIPT_DIR
/scripts/uck_functions.sh is missing."
exit
1
fi
if
[
!
-d
"
$SCRIPT_DIR
"
]
;
then
echo
"Error: Missing remaster directory/files. Abort."
exit
2
...
...
@@ -96,23 +103,6 @@ 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
...
...
This diff is collapsed.
Click to expand it.
scripts/uck_functions.sh
0 → 100644
+
18
−
0
View file @
e7604ee0
#!/bin/bash
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
}
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