diff options
author | Daniel Baumann <daniel@debian.org> | 2011-07-19 10:57:02 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-07-19 10:57:02 +0200 |
commit | ac6147adb7ccf6709d4939e45789415656eed7b0 (patch) | |
tree | 7a6ae2a8d0a68dc9c7690480cb7e4455191e33e3 /scripts | |
parent | ef2752faab0697cc44036d89a5b4f6e08e3081f3 (diff) | |
download | vyos-live-build-ac6147adb7ccf6709d4939e45789415656eed7b0.tar.gz vyos-live-build-ac6147adb7ccf6709d4939e45789415656eed7b0.zip |
Consolidating local hooks for chroot and binary into config/hooks/*.{chroot,binary}.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/lb_binary_local-hooks | 4 | ||||
-rwxr-xr-x | scripts/build/lb_chroot_local-hooks | 4 | ||||
-rwxr-xr-x | scripts/build/lb_config | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/scripts/build/lb_binary_local-hooks b/scripts/build/lb_binary_local-hooks index e3c08c292..f9a8f61a3 100755 --- a/scripts/build/lb_binary_local-hooks +++ b/scripts/build/lb_binary_local-hooks @@ -39,9 +39,9 @@ Check_lockfile .lock Create_lockfile .lock # Processing local-hooks -if Find_files config/binary_local-hooks/* +if Find_files config/hooks/*.binary then - for HOOK in config/binary_local-hooks/* + for HOOK in config/hooks/*.binary do # Making hook executable if [ ! -x "${HOOK}" ] diff --git a/scripts/build/lb_chroot_local-hooks b/scripts/build/lb_chroot_local-hooks index c6482c569..f7bc57468 100755 --- a/scripts/build/lb_chroot_local-hooks +++ b/scripts/build/lb_chroot_local-hooks @@ -39,12 +39,12 @@ Check_lockfile .lock Create_lockfile .lock # Processing local-hooks -if Find_files config/chroot_local-hooks/* +if Find_files config/hooks/*.chroot then # Restoring cache Restore_cache cache/packages_chroot - for HOOK in config/chroot_local-hooks/* + for HOOK in config/hooks/*.chroot do # Copying hook cp "${HOOK}" chroot/root diff --git a/scripts/build/lb_config b/scripts/build/lb_config index ad144aa3b..0e478a30f 100755 --- a/scripts/build/lb_config +++ b/scripts/build/lb_config @@ -1150,7 +1150,7 @@ EOF # Creating lb_chroot_* configuration mkdir -p config/archives mkdir -p config/chroot_apt -mkdir -p config/chroot_local-hooks +mkdir -p config/hooks mkdir -p config/chroot_local-includes mkdir -p config/chroot_local-patches mkdir -p config/chroot_packages @@ -1223,7 +1223,6 @@ mkdir -p config/binary_debian-installer mkdir -p config/binary_debian-installer-includes mkdir -p config/binary_grub mkdir -p config/binary_local-debs -mkdir -p config/binary_local-hooks mkdir -p config/binary_local-includes mkdir -p config/package-lists mkdir -p config/binary_local-udebs |