aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/src/ExtLinuxConf.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pygrub/src/ExtLinuxConf.py')
-rw-r--r--tools/pygrub/src/ExtLinuxConf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pygrub/src/ExtLinuxConf.py b/tools/pygrub/src/ExtLinuxConf.py
index 9d77b9f9bb..19776a3c92 100644
--- a/tools/pygrub/src/ExtLinuxConf.py
+++ b/tools/pygrub/src/ExtLinuxConf.py
@@ -60,7 +60,7 @@ class ExtLinuxImage(object):
# Bypass regular self.commands handling
com = None
- elif arg.find("initrd="):
+ elif "initrd=" in arg:
# find initrd image in append line
args = arg.strip().split(" ")
for a in args: