Refactoring: Remove whitespace differences between Karmic and Debian hooks
This commit is contained in:
parent
f7248b2e65
commit
db32bcffd4
@ -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
|
||||
#
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user