Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.170
diff -u -p -r1.170 module.inc
--- includes/module.inc	9 Nov 2009 19:00:03 -0000	1.170
+++ includes/module.inc	10 Nov 2009 06:34:06 -0000
@@ -106,6 +106,16 @@ function module_list($refresh = FALSE, $
 function system_list($type) {
   $lists = &drupal_static(__FUNCTION__);
 
+  if ($type == 'bootstrap') {
+    $result = db_query("SELECT name, filename FROM {system} WHERE status = 1 AND bootstrap = 1 ORDER BY weight ASC, name ASC");
+    foreach ($result as $record) {
+      $list[$record->name] = $record;
+      drupal_get_filename('module', $record->name, $record->filename);
+    }
+    return array_keys($list);
+  }
+
+
   if (!isset($lists)) {
     $lists = array(
       'bootstrap' => array(),
