Renaming lb_chroot_local-includes into lb_chroot_includes and check for includes in config/includes.chroot.

This commit is contained in:
Daniel Baumann 2011-09-07 15:16:23 +02:00
parent dd853aa5d9
commit 046095cffa
6 changed files with 15 additions and 15 deletions

View File

@ -69,7 +69,7 @@ do
done
lb chroot_live-packages ${*}
lb chroot_local-includes ${*}
lb chroot_includes ${*}
lb chroot_local-patches ${*}
lb chroot_hooks ${*}
lb chroot_hacks ${*}

View File

@ -71,10 +71,10 @@ EOF
# Creating lock file
Create_lockfile .lock
# Copying hostname from local-includes, if existing
if [ -e config/chroot_local-includes/etc/hostname ]
# Copying hostname from includes, if existing
if [ -e config/includes.chroot/etc/hostname ]
then
cp -a config/chroot_local-includes/etc/hostname chroot/etc/hostname
cp -a config/includes.chroot/etc/hostname chroot/etc/hostname
fi
Echo_message "Deconfiguring file /bin/hostname"

View File

@ -73,10 +73,10 @@ EOF
# Creating lock file
Create_lockfile .lock
if [ -e config/chroot_local-includes/etc/hosts ]
if [ -e config/includes.chroot/etc/hosts ]
then
# Copying local hosts
cp -a config/chroot_local-includes/etc/hosts chroot/etc/hosts
cp -a config/includes.chroot/etc/hosts chroot/etc/hosts
rm -f chroot/etc/hosts.orig
elif [ -f chroot/etc/hosts.orig ]
then

View File

@ -14,7 +14,7 @@ set -e
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
# Setting static variables
DESCRIPTION="$(Echo 'copy local files into chroot')"
DESCRIPTION="$(Echo 'copy files into chroot')"
HELP=""
USAGE="${PROGRAM} [--force]"
@ -24,13 +24,13 @@ Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
Echo_message "Begin copying chroot local includes..."
Echo_message "Begin copying chroot includes..."
# Requiring stage file
Require_stagefile .stage/config .stage/bootstrap
# Checking stage file
Check_stagefile .stage/chroot_local-includes
Check_stagefile .stage/includes.chroot
# Checking lock file
Check_lockfile .lock
@ -38,13 +38,13 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
if Find_files config/chroot_local-includes/
if Find_files config/includes.chroot/
then
# Copying includes
cd config/chroot_local-includes
cd config/includes.chroot
find . | cpio -dmpu --no-preserve-owner "${OLDPWD}"/chroot
cd "${OLDPWD}"
# Creating stage file
Create_stagefile .stage/chroot_local-includes
Create_stagefile .stage/chroot_includes
fi

View File

@ -72,10 +72,10 @@ case "${1}" in
# Creating lock file
Create_lockfile .lock
if [ -e config/chroot_local-includes/etc/resolv.conf ]
if [ -e config/includes.chroot/etc/resolv.conf ]
then
# Copying local resolv.conf
cp -a config/chroot_local-includes/etc/resolv.conf chroot/etc/resolv.conf
cp -a config/includes.chroot/etc/resolv.conf chroot/etc/resolv.conf
rm -f chroot/etc/resolv.conf.orig
elif [ -e chroot/etc/resolv.conf.orig ]
then

View File

@ -1161,7 +1161,7 @@ EOF
mkdir -p config/archives
mkdir -p config/chroot_apt
mkdir -p config/hooks
mkdir -p config/chroot_local-includes
mkdir -p config/local.chroot
mkdir -p config/chroot_local-patches
mkdir -p config/chroot_packages
mkdir -p config/package-lists