code: def find_active_sysroot() -> str:
      
      cmdline = _get_proc_cmdline()
      match = re.search(b'root=([/a-zA-Z0-9.]+)', cmdline)
      if not match:
          raise RuntimeError(f"Couldn't find bootpart from {cmdline}")
      return match.group(1).decode()
docs: Parse /proc/cmdline to find the active sysroot. Return the path