Skip to content
Snippets Groups Projects
Commit 1bf72492 authored by Alexander Schreiber's avatar Alexander Schreiber Committed by Iustin Pop
Browse files

Enable lvmstrap to run under Linux 3.x


Extend the kernel version check to also accept Linux 3.x as valid.

Signed-off-by: default avatarAlexander Schreiber <als@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent d3cd5a3f
No related branches found
No related tags found
No related merge requests found
...@@ -272,9 +272,9 @@ def CheckPrereq(): ...@@ -272,9 +272,9 @@ def CheckPrereq():
raise PrereqError("This tool only runs on Linux" raise PrereqError("This tool only runs on Linux"
" (detected OS: %s)." % osname) " (detected OS: %s)." % osname)
if not release.startswith("2.6."): if not (release.startswith("2.6.") or release.startswith("3.")):
raise PrereqError("Wrong major kernel version (detected %s, needs" raise PrereqError("Wrong major kernel version (detected %s, needs"
" 2.6.*)" % release) " 2.6.* or 3.*)" % release)
if not os.path.ismount("/sys"): if not os.path.ismount("/sys"):
raise PrereqError("Can't find a filesystem mounted at /sys." raise PrereqError("Can't find a filesystem mounted at /sys."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment