diff --git a/README.adoc b/README.adoc index 47c3f4c..5ad6358 100644 --- a/README.adoc +++ b/README.adoc @@ -9,7 +9,7 @@ :toclevels: 6 :toc-title: -The perfect emulation setup to study and develop the <> v5.0, kernel modules, <>, <> and x86_64, ARMv7 and ARMv8 <> and <> assembly, ANSI C, C++ and POSIX. <> and <> just work. Powered by <> and <>. Highly automated. Thoroughly documented. Automated <>. "Tested" in an Ubuntu 18.04 host. +The perfect emulation setup to study and develop the <> v5.1, kernel modules, <>, <> and x86_64, ARMv7 and ARMv8 <> and <> assembly, ANSI C, C++ and POSIX. <> and <> just work. Powered by <> and <>. Highly automated. Thoroughly documented. Automated <>. "Tested" in an Ubuntu 18.04 host. TL;DR: <> diff --git a/common.py b/common.py index f2fad97..059f26c 100644 --- a/common.py +++ b/common.py @@ -38,6 +38,7 @@ common = sys.modules[__name__] # Fixed parameters that don't depend on CLI arguments. consts = {} consts['repo_short_id'] = 'lkmc' +consts['linux_kernel_version'] = '5.1' # https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker consts['in_docker'] = os.path.exists('/.dockerenv') consts['root_dir'] = os.path.dirname(os.path.abspath(__file__)) diff --git a/run b/run index de688e9..ce1e043 100755 --- a/run +++ b/run @@ -160,7 +160,7 @@ Example: `./run --kernel-cli-after-dash 'lkmc_eval="wget google.com" lkmc_lala=y ) self.add_argument( '--kernel-version', - default='5.0', + default=common.consts['linux_kernel_version'], help='''\ Pass a base64 encoded command line parameter that gets evalled at the end of the normal init.