diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-30 07:24:31 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-30 07:24:31 +0900 |
commit | a1a561150357ba8bd7a7b918e496e2295d28c825 (patch) | |
tree | 7ca670ccf04ddca2413ad4025b76d028187a258f /elivepatch_server | |
parent | Copyright fix to GPLv2+ (diff) | |
download | elivepatch-a1a561150357ba8bd7a7b918e496e2295d28c825.tar.gz elivepatch-a1a561150357ba8bd7a7b918e496e2295d28c825.tar.bz2 elivepatch-a1a561150357ba8bd7a7b918e496e2295d28c825.zip |
adding debug option to the server
Diffstat (limited to 'elivepatch_server')
-rw-r--r-- | elivepatch_server/resources/livepatch.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/elivepatch_server/resources/livepatch.py b/elivepatch_server/resources/livepatch.py index f4ed849..00431cf 100644 --- a/elivepatch_server/resources/livepatch.py +++ b/elivepatch_server/resources/livepatch.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# + # (c) 2017, Alice Ferrazzi <alice.ferrazzi@gmail.com> # Distributed under the terms of the GNU General Public License v2 or later @@ -77,12 +77,16 @@ class PaTch(object): :param vmlinux: :return: """ + debug=True bashCommand = 'sudo kpatch-build' - bashCommand += ' -s '+ kernel_source - bashCommand += ' -v '+ vmlinux - bashCommand += ' -c '+ self.config_file + bashCommand += ' -s ' + kernel_source + bashCommand += ' -v ' + vmlinux + bashCommand += ' -c ' + self.config_file bashCommand += ' ' + self.patch_file bashCommand += ' --skip-gcc-check' + if debug: + bashCommand += ' --skip-cleanup' + bashCommand += ' --debug' print(bashCommand) process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE) output, error = process.communicate() |