1
0
mirror of synced 2026-03-04 18:14:15 +00:00

Refactoring: Remove whitespace differences between Karmic and Debian hooks

This commit is contained in:
Axel Beckert
2010-05-16 02:48:45 +02:00
parent f7248b2e65
commit db32bcffd4
2 changed files with 4 additions and 7 deletions

View File

@@ -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
#

View File

@@ -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