summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-06-15 22:08:23 +0200
committerDaniel Baumann <daniel@debian.org>2011-06-15 22:08:44 +0200
commitb86f9c6380cd28a8bfb163b42fb1e80f2f489685 (patch)
tree80977191eed8ab625bea2069cb7491909b9d44d0 /scripts
parentcfb6ecedfa5f923296c6ab23b7d1e8ec60f0f156 (diff)
downloadvyos-live-build-b86f9c6380cd28a8bfb163b42fb1e80f2f489685.tar.gz
vyos-live-build-b86f9c6380cd28a8bfb163b42fb1e80f2f489685.zip
Since we don't have global packages anymore, renaming lb_chroot_local-packages to lb_chroot_packages and config/chroot_local-packages to config/chroot_packages.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_chroot2
-rwxr-xr-xscripts/build/lb_chroot_apt6
-rwxr-xr-xscripts/build/lb_chroot_archives44
-rwxr-xr-xscripts/build/lb_chroot_local-packages8
-rwxr-xr-xscripts/build/lb_config2
5 files changed, 31 insertions, 31 deletions
diff --git a/scripts/build/lb_chroot b/scripts/build/lb_chroot
index b112b3d43..8dbc72d56 100755
--- a/scripts/build/lb_chroot
+++ b/scripts/build/lb_chroot
@@ -60,7 +60,7 @@ for _PASS in install live
do
lb chroot_packagelists ${_PASS} ${*}
lb chroot_local-packagelists ${_PASS} ${*}
- lb chroot_local-packages ${_PASS} ${*}
+ lb chroot_packages ${_PASS} ${*}
lb chroot_install-packages ${_PASS} ${*}
lb chroot_task-lists ${_PASS} ${*}
diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt
index 010cc4ac6..ab926aa43 100755
--- a/scripts/build/lb_chroot_apt
+++ b/scripts/build/lb_chroot_apt
@@ -108,12 +108,12 @@ case "${1}" in
cp config/chroot_apt/preferences chroot/etc/apt/preferences
fi
- if Find_files config/chroot_local-packages/*.deb
+ if Find_files config/chroot_packages/*.deb
then
echo >> chroot/etc/apt/preferences
echo "# Added by lb_chroot_apt ${@}" >> chroot/etc/apt/preferences
echo "Package: *" >> chroot/etc/apt/preferences
- echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
+ echo "Pin: release o=chroot_packages" >> chroot/etc/apt/preferences
case "${1}" in
install)
@@ -236,7 +236,7 @@ EOF
fi
fi
- if Find_files config/chroot_local-packages/*.deb
+ if Find_files config/chroot_packages/*.deb
then
if [ -f chroot/etc/apt/preferences ]
then
diff --git a/scripts/build/lb_chroot_archives b/scripts/build/lb_chroot_archives
index 69ac751da..14423669d 100755
--- a/scripts/build/lb_chroot_archives
+++ b/scripts/build/lb_chroot_archives
@@ -261,44 +261,44 @@ EOF
fi
# Configure local package repository
- if Find_files config/chroot_local-packages/*.deb
+ if Find_files config/chroot_packages/*.deb
then
- rm -rf chroot/root/local-packages
- mkdir -p chroot/root/local-packages
+ rm -rf chroot/root/packages
+ mkdir -p chroot/root/packages
- if [ "$(stat --printf %d config/chroot_local-packages)" = "$(stat --printf %d chroot/root/local-packages)" ]
+ if [ "$(stat --printf %d config/chroot_packages)" = "$(stat --printf %d chroot/root/packages)" ]
then
CP_OPTIONS="-l"
fi
# Copy packages
- if Find_files config/chroot_local-packages/*_"${LB_ARCHITECTURES}".deb
+ if Find_files config/chroot_packages/*_"${LB_ARCHITECTURES}".deb
then
- for FILE in config/chroot_local-packages/*_"${LB_ARCHITECTURES}".deb
+ for FILE in config/chroot_packages/*_"${LB_ARCHITECTURES}".deb
do
if [ -L "${FILE}" ]
then
- cp -L config/chroot_local-packages/*_"${LB_ARCHITECTURES}".deb chroot/root/local-packages
+ cp -L config/chroot_packages/*_"${LB_ARCHITECTURES}".deb chroot/root/packages
else
- cp ${CP_OPTIONS} config/chroot_local-packages/*_"${LB_ARCHITECTURES}".deb chroot/root/local-packages
+ cp ${CP_OPTIONS} config/chroot_packages/*_"${LB_ARCHITECTURES}".deb chroot/root/packages
fi
done
fi
- if Find_files config/chroot_local-packages/*_all.deb
+ if Find_files config/chroot_packages/*_all.deb
then
- for FILE in config/chroot_local-packages/*_all.deb
+ for FILE in config/chroot_packages/*_all.deb
do
if [ -L "${FILE}" ]
then
- cp -L config/chroot_local-packages/*_all.deb chroot/root/local-packages
+ cp -L config/chroot_packages/*_all.deb chroot/root/packages
else
- cp ${CP_OPTIONS} config/chroot_local-packages/*_all.deb chroot/root/local-packages
+ cp ${CP_OPTIONS} config/chroot_packages/*_all.deb chroot/root/packages
fi
done
fi
- if Find_files chroot/root/local-packages/*.deb
+ if Find_files chroot/root/packages/*.deb
then
# If we bootstrapped a minimal chroot, we need
# to install apt-utils before we have have
@@ -316,12 +316,12 @@ EOF
Install_package
# Generate Packages and Packages.gz
- echo "cd /root/local-packages && apt-ftparchive packages . > Packages" | Chroot chroot sh
- gzip -9 -c chroot/root/local-packages/Packages > chroot/root/local-packages/Packages.gz
+ echo "cd /root/packages && apt-ftparchive packages . > Packages" | Chroot chroot sh
+ gzip -9 -c chroot/root/packages/Packages > chroot/root/packages/Packages.gz
# Generate Release
- echo "cd /root/local-packages && apt-ftparchive \
- -o APT::FTPArchive::Release::Origin=chroot_local-packages \
+ echo "cd /root/packages && apt-ftparchive \
+ -o APT::FTPArchive::Release::Origin=chroot_packages \
release . > Release" | Chroot chroot sh
if [ "${LB_APT_SECURE}" = "true" ]
@@ -379,7 +379,7 @@ EOF
# Sign release
Chroot chroot "gpg --no-default-keyring --secret-keyring /root/local-package-keyring.sec \
--keyring /root/local-package-keyring.pub -abs -o \
- /root/local-packages/Release.gpg /root/local-packages/Release"
+ /root/packages/Release.gpg /root/packages/Release"
# Import key
Chroot chroot "gpg --no-default-keyring --secret-keyring /root/local-package-keyring.sec \
@@ -404,7 +404,7 @@ EOF
fi
# Add to sources.list.d
- echo "deb file:/root/local-packages ./" > chroot/etc/apt/sources.list.d/local-packages.list
+ echo "deb file:/root/packages ./" > chroot/etc/apt/sources.list.d/packages.list
# Removing depends
Remove_package
@@ -557,7 +557,7 @@ EOF
# Don't do anything if it's not required
if [ "${LB_PARENT_MIRROR_CHROOT}" = "${LB_PARENT_MIRROR_BINARY}" ] && \
[ "${LB_PARENT_MIRROR_CHROOT_SECURITY}" = "${LB_PARENT_MIRROR_BINARY_SECURITY}" ] && \
- [ ! -d chroot/root/local-packages ]
+ [ ! -d chroot/root/packages ]
then
# Removing stage file
rm -f .stage/chroot_archives
@@ -805,8 +805,8 @@ EOF
fi
# Remove local package repository
- rm -f chroot/etc/apt/sources.list.d/local-packages.list
- rm -rf chroot/root/local-packages
+ rm -f chroot/etc/apt/sources.list.d/packages.list
+ rm -rf chroot/root/packages
# Remove local packages key if it exists
if apt-key list | grep -q ${_LB_LOCAL_KEY_EMAIL}
diff --git a/scripts/build/lb_chroot_local-packages b/scripts/build/lb_chroot_local-packages
index bca5c5ede..e5da1aa5e 100755
--- a/scripts/build/lb_chroot_local-packages
+++ b/scripts/build/lb_chroot_local-packages
@@ -30,7 +30,7 @@ Echo_message "Begin queueing installation of local packages..."
Require_stagefile .stage/config .stage/bootstrap
# Checking stage file
-Check_stagefile .stage/chroot_local-packages
+Check_stagefile .stage/chroot_packages
# Checking lock file
Check_lockfile .lock
@@ -38,11 +38,11 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
-if Find_files chroot/root/local-packages/*.deb
+if Find_files chroot/root/packages/*.deb
then
- gunzip < chroot/root/local-packages/Packages.gz | awk '/^Package: / { print $2 }' \
+ gunzip < chroot/root/packages/Packages.gz | awk '/^Package: / { print $2 }' \
>> chroot/root/chroot_packages
# Creating stage file
- Create_stagefile .stage/chroot_local-packages
+ Create_stagefile .stage/chroot_packages
fi
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index 4de05d9df..f2c0019b7 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -1153,7 +1153,7 @@ mkdir -p config/chroot_archives
mkdir -p config/chroot_local-hooks
mkdir -p config/chroot_local-includes
mkdir -p config/chroot_local-patches
-mkdir -p config/chroot_local-packages
+mkdir -p config/chroot_packages
mkdir -p config/package-lists
mkdir -p config/chroot_local-preseed
mkdir -p config/task-lists