diff --git a/hooks/debian/80-install-kernel b/hooks/debian/80-install-kernel index 8e5b032..8c3df09 100755 --- a/hooks/debian/80-install-kernel +++ b/hooks/debian/80-install-kernel @@ -21,14 +21,13 @@ else . ./hooks/common.sh fi +if [ ${pygrub} ]; then # # Log our start # logMessage Script $0 starting -if [ ${pygrub} ]; then - # # Resolve the correct architecutre # diff --git a/hooks/karmic/80-install-kernel b/hooks/karmic/80-install-kernel index 7e7a082..cb7987f 100755 --- a/hooks/karmic/80-install-kernel +++ b/hooks/karmic/80-install-kernel @@ -9,13 +9,12 @@ # -- # http://nedos.net - prefix=$1 - # # Source our common functions # + if [ -e /usr/lib/xen-tools/common.sh ]; then . /usr/lib/xen-tools/common.sh else @@ -26,8 +25,8 @@ if [ ${pygrub} ]; then # # Log our start # -logMessage Script $0 starting +logMessage Script $0 starting # # The type of kernel that we will be installing @@ -47,8 +46,7 @@ if chroot ${prefix} /usr/bin/apt-cache show ${linux_kernel_package} >/dev/null 2 # Force initrd if none exists echo ${prefix}/boot/initrd* | grep -q 2\\.6 if [ $? -ne 0 ]; then - chroot ${prefix} update-initramfs -c -k `ls -1 -${prefix}/lib/modules/ | head -n 1` + chroot ${prefix} update-initramfs -c -k `ls -1 ${prefix}/lib/modules/ | head -n 1` fi # Generate grub menu.lst