fixup: Add to append extra repository components

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie775f7217e363012966f568bac67de95e46b8266
This commit is contained in:
Dongjin Kim
2024-10-24 11:40:03 +09:00
parent e4fe8d5f57
commit 5e0d2621c6
2 changed files with 15 additions and 0 deletions

View File

@@ -6,6 +6,14 @@ deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ main
__EOF
fi
if [ ! "x@@DEFAULT_REPO_COMPONENTS@@" = "x" ]; then
for component in @@DEFAULT_REPO_COMPONENTS@@; do
cat>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ ${component}
__EOF
done
fi
if [ "x@@INTERNAL@@" = "xtrue" ]; then
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ internal

View File

@@ -139,6 +139,12 @@ get_package_list() {
echo ${pkgs}
}
get_repo_components() {
local pkgs=$(get_package_list components)
echo ${pkgs} | tr " " "\n" | sort | uniq | tr "\n" " "
}
get_flavour_packages() {
local pkgs=$(get_package_list packages)
@@ -439,6 +445,7 @@ do_preinstall() {
-e "s,@@DEFAULT_BOARD@@,${BOARD},g" \
-e "s,@@DEFAULT_HOSTNAME@@,${FLAVOUR},g" \
-e "s,@@DEFAULT_APT_OPTIONS@@,$(get_default_apt_options ${FLAVOUR}),g" \
-e "s,@@DEFAULT_REPO_COMPONENTS@@,$(get_repo_components),g" \
-e "s,@@DEFAULT_FLAVOUR_PACKAGES@@,$(get_flavour_packages),g" \
-e "s,@@DEFAULT_BLACKLIST_PACKAGES@@,$(get_blacklist_packages),g" \
-e "s,@@DEFAULT_KERNEL_PACKAGE@@,${DEFAULT_KERNEL_PACKAGE},g" \