Fix inconsistent handling of --nopygrub parameter
Closes: https://bugs.debian.org/842609
This commit is contained in:
committed by
Axel Beckert
parent
40191bbd07
commit
ef09662822
@@ -31,7 +31,7 @@ fi
|
||||
#
|
||||
logMessage Script $0 starting
|
||||
|
||||
if [ ${pygrub} ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
logMessage "pygrub set, skipping module install"
|
||||
else
|
||||
#
|
||||
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
#
|
||||
logMessage Script $0 starting
|
||||
|
||||
if [ ${pygrub} ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
|
||||
#
|
||||
# Install the grub 0.9x package ("grub-legacy" on Debian, "grub" on Ubuntu)
|
||||
|
||||
@@ -21,7 +21,7 @@ else
|
||||
. ./hooks/common.sh
|
||||
fi
|
||||
|
||||
if [ "${pygrub}" ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
#
|
||||
# Log our start
|
||||
#
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
logMessage Script $0 starting
|
||||
|
||||
if [ "${pygrub}" ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
|
||||
#
|
||||
# Attempt to install a xen kernel, if that fails, then install a normal one
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
logMessage Script $0 starting
|
||||
|
||||
if [ "${pygrub}" ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
|
||||
#
|
||||
# Attempt to install a xen kernel, if that fails, then install a normal one
|
||||
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
logMessage Script $0 starting
|
||||
|
||||
if [ "${pygrub}" ]; then
|
||||
if [ "${pygrub}" = "1" ]; then
|
||||
|
||||
#
|
||||
# The type of kernel that we will be installing
|
||||
|
||||
Reference in New Issue
Block a user