diff --git a/hooks/centos4/10-disable-tls b/hooks/centos4/10-disable-tls index aa7e9df..b7896f6 100755 --- a/hooks/centos4/10-disable-tls +++ b/hooks/centos4/10-disable-tls @@ -15,8 +15,8 @@ dist=$2 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/20-setup-yum b/hooks/centos4/20-setup-yum index bad1a98..13a75b5 100755 --- a/hooks/centos4/20-setup-yum +++ b/hooks/centos4/20-setup-yum @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/30-fix-inittab b/hooks/centos4/30-fix-inittab index 98ca9c3..4d72040 100755 --- a/hooks/centos4/30-fix-inittab +++ b/hooks/centos4/30-fix-inittab @@ -16,8 +16,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/40-setup-networking b/hooks/centos4/40-setup-networking index bcdab05..3718685 100755 --- a/hooks/centos4/40-setup-networking +++ b/hooks/centos4/40-setup-networking @@ -14,8 +14,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/50-setup-hostname b/hooks/centos4/50-setup-hostname index c5433ec..533c953 100755 --- a/hooks/centos4/50-setup-hostname +++ b/hooks/centos4/50-setup-hostname @@ -15,8 +15,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/55-create-dev b/hooks/centos4/55-create-dev index c28c38b..0156bf2 100755 --- a/hooks/centos4/55-create-dev +++ b/hooks/centos4/55-create-dev @@ -15,8 +15,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/65-copy-user-files b/hooks/centos4/65-copy-user-files index 94c3d8e..496bc66 100755 --- a/hooks/centos4/65-copy-user-files +++ b/hooks/centos4/65-copy-user-files @@ -11,8 +11,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/70-install-ssh b/hooks/centos4/70-install-ssh index 1524c59..b7fa030 100755 --- a/hooks/centos4/70-install-ssh +++ b/hooks/centos4/70-install-ssh @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/80-install-modules b/hooks/centos4/80-install-modules index f1d962e..ca0e0c2 100755 --- a/hooks/centos4/80-install-modules +++ b/hooks/centos4/80-install-modules @@ -15,8 +15,8 @@ dist=$2 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/90-make-fstab b/hooks/centos4/90-make-fstab index 02f152d..bc5b6f1 100755 --- a/hooks/centos4/90-make-fstab +++ b/hooks/centos4/90-make-fstab @@ -17,8 +17,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/centos4/99-clean-image b/hooks/centos4/99-clean-image index 452005e..9bc0ecf 100755 --- a/hooks/centos4/99-clean-image +++ b/hooks/centos4/99-clean-image @@ -12,8 +12,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/10-disable-tls b/hooks/debian/10-disable-tls index 7ee040f..01023a1 100755 --- a/hooks/debian/10-disable-tls +++ b/hooks/debian/10-disable-tls @@ -12,8 +12,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/15-disable-hwclock b/hooks/debian/15-disable-hwclock index e608bac..5dcf04b 100755 --- a/hooks/debian/15-disable-hwclock +++ b/hooks/debian/15-disable-hwclock @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/20-setup-apt b/hooks/debian/20-setup-apt index 350d36d..1d0b8b8 100755 --- a/hooks/debian/20-setup-apt +++ b/hooks/debian/20-setup-apt @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/30-fix-inittab b/hooks/debian/30-fix-inittab index 98ca9c3..4d72040 100755 --- a/hooks/debian/30-fix-inittab +++ b/hooks/debian/30-fix-inittab @@ -16,8 +16,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/40-setup-networking b/hooks/debian/40-setup-networking index e523361..88ae6ac 100755 --- a/hooks/debian/40-setup-networking +++ b/hooks/debian/40-setup-networking @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/50-setup-hostname b/hooks/debian/50-setup-hostname index c5433ec..533c953 100755 --- a/hooks/debian/50-setup-hostname +++ b/hooks/debian/50-setup-hostname @@ -15,8 +15,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/55-create-dev b/hooks/debian/55-create-dev index bcfa993..5c7c420 100755 --- a/hooks/debian/55-create-dev +++ b/hooks/debian/55-create-dev @@ -14,8 +14,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/65-copy-user-files b/hooks/debian/65-copy-user-files index 94c3d8e..496bc66 100755 --- a/hooks/debian/65-copy-user-files +++ b/hooks/debian/65-copy-user-files @@ -11,8 +11,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/70-install-ssh b/hooks/debian/70-install-ssh index a341df5..fbfaa2f 100755 --- a/hooks/debian/70-install-ssh +++ b/hooks/debian/70-install-ssh @@ -15,8 +15,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/80-install-modules b/hooks/debian/80-install-modules index 7e7b41d..be9de8c 100755 --- a/hooks/debian/80-install-modules +++ b/hooks/debian/80-install-modules @@ -20,8 +20,8 @@ dist=$2 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/90-make-fstab b/hooks/debian/90-make-fstab index eb9f194..9c5689a 100755 --- a/hooks/debian/90-make-fstab +++ b/hooks/debian/90-make-fstab @@ -17,8 +17,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi diff --git a/hooks/debian/99-clean-image b/hooks/debian/99-clean-image index aac7b59..58c634b 100755 --- a/hooks/debian/99-clean-image +++ b/hooks/debian/99-clean-image @@ -13,8 +13,8 @@ prefix=$1 # # Source our common functions # -if [ -e ../common.sh ]; then - . ../common.sh +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh fi