X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FChainBootNode.py;fp=source%2Fsteps%2FChainBootNode.py;h=ee54c5381ba317016c98156c2bf326e27c9831e7;hb=f4ad0a5814e8b62eda1f80d6e1266bd11d84015b;hp=5dec7395ef5ba8373f673cdf0d3f0f6d56338f01;hpb=04f40909223edfa75aad8d7baa45925aee7ae812;p=bootmanager.git diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py index 5dec739..ee54c53 100644 --- a/source/steps/ChainBootNode.py +++ b/source/steps/ChainBootNode.py @@ -166,7 +166,7 @@ def Run( vars, log ): major_version = int(kversion[0]) # Check if the string looks like a kernel version except: # Try a different method for non-rpm-based distributions - kversion = os.popen("ls -lrt /lib/modules | tail -1 | awk '{print $9;}'").read().rstrip() + kversion = os.popen("ls -lrt %s/lib/modules | tail -1 | awk '{print $9;}'"%SYSIMG_PATH).read().rstrip() utils.sysexec( "cp %s/boot/vmlinuz-%s /tmp/kernel" % (SYSIMG_PATH,kversion), log ) candidates=[]