summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-09-07 15:16:23 +0200
committerDaniel Baumann <daniel@debian.org>2011-09-07 15:16:23 +0200
commit046095cffa06c76406e6cd7321ccbf789d09063a (patch)
tree5ecd5f65f2200b6dbbbdfab5ec210a4369bf9207 /scripts
parentdd853aa5d93df297f0ed03cc980749dfddfb292f (diff)
downloadvyos-live-build-046095cffa06c76406e6cd7321ccbf789d09063a.tar.gz
vyos-live-build-046095cffa06c76406e6cd7321ccbf789d09063a.zip
Renaming lb_chroot_local-includes into lb_chroot_includes and check for includes in config/includes.chroot.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_chroot2
-rwxr-xr-xscripts/build/lb_chroot_hostname6
-rwxr-xr-xscripts/build/lb_chroot_hosts4
-rwxr-xr-xscripts/build/lb_chroot_includes (renamed from scripts/build/lb_chroot_local-includes)12
-rwxr-xr-xscripts/build/lb_chroot_resolv4
-rwxr-xr-xscripts/build/lb_config2
6 files changed, 15 insertions, 15 deletions
diff --git a/scripts/build/lb_chroot b/scripts/build/lb_chroot
index e459c6cb9..5677a68a0 100755
--- a/scripts/build/lb_chroot
+++ b/scripts/build/lb_chroot
@@ -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 ${*}
diff --git a/scripts/build/lb_chroot_hostname b/scripts/build/lb_chroot_hostname
index 81bf4c3f4..4da8602f0 100755
--- a/scripts/build/lb_chroot_hostname
+++ b/scripts/build/lb_chroot_hostname
@@ -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"
diff --git a/scripts/build/lb_chroot_hosts b/scripts/build/lb_chroot_hosts
index f246b5351..65e85fa2e 100755
--- a/scripts/build/lb_chroot_hosts
+++ b/scripts/build/lb_chroot_hosts
@@ -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
diff --git a/scripts/build/lb_chroot_local-includes b/scripts/build/lb_chroot_includes
index d2c0f8a2f..0d08dd947 100755
--- a/scripts/build/lb_chroot_local-includes
+++ b/scripts/build/lb_chroot_includes
@@ -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
diff --git a/scripts/build/lb_chroot_resolv b/scripts/build/lb_chroot_resolv
index 1e705dcfc..e32bdc669 100755
--- a/scripts/build/lb_chroot_resolv
+++ b/scripts/build/lb_chroot_resolv
@@ -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
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index ff14b431d..7ac14c5f7 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -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