Commit 8f8e8062 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Untested generic solution for real root.

parent 31825249
......@@ -271,6 +271,7 @@ cdef int start(const char *path) nogil:
dev_whitelist_paths.append(b'/boot/efi')
dev_whitelist_paths.append(b'/root')
dev_whitelist_paths.append(b'/sysroot')
dev_whitelist_paths.append(path)
dev_whitelist = cyplist[dev_t]()
for p in dev_whitelist_paths:
......@@ -322,7 +323,10 @@ cdef int start(const char *path) nogil:
return 0
cdef public int main() nogil:
cdef public int main(int argc, char* argv[]) nogil:
if argc >= 2:
return start(<char*>argv[1])
else:
return start(<char*>'/')
#def python_main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment