summaryrefslogtreecommitdiffstats
path: root/isys/isys.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-07-09 21:45:40 +0000
committerJeremy Katz <katzj@redhat.com>2004-07-09 21:45:40 +0000
commit2bb09b7d284d82a54cd46b5bda5c3541a0891ce7 (patch)
tree1715880b28483108593674999df9c46cb204ad8a /isys/isys.c
parent02d56153af18491f1b964ffb506f7ad09662d030 (diff)
downloadanaconda-2bb09b7d284d82a54cd46b5bda5c3541a0891ce7.tar.gz
anaconda-2bb09b7d284d82a54cd46b5bda5c3541a0891ce7.tar.xz
anaconda-2bb09b7d284d82a54cd46b5bda5c3541a0891ce7.zip
add patch from Rezwanul_Kabir (AT dell DOT com) to add support for using
the edd module's export of mbr signatures to map BIOS disks to Linux disk names. exposed for use in kickstart with part --onbiosdisk=, ks=bd:80p1:/ks.cfg, and harddrive --biospart=80p1 Patch from anaconda-devel-list, #106674
Diffstat (limited to 'isys/isys.c')
-rw-r--r--isys/isys.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c
index d16538871..164e5ea2e 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -49,6 +49,7 @@
#include "lang.h"
#include "getmacaddr.h"
#include "wireless.h"
+#include "eddsupport.h"
#ifndef CDROMEJECT
#define CDROMEJECT 0x5309
@@ -111,6 +112,8 @@ static PyObject * doGetMacAddress(PyObject * s, PyObject * args);
static PyObject * doGetIPAddress(PyObject * s, PyObject * args);
static PyObject * doResetFileContext(PyObject * s, PyObject * args);
static PyObject * isWireless(PyObject * s, PyObject * args);
+static PyObject * doProbeBiosDisks(PyObject * s, PyObject * args);
+static PyObject * doGetBiosDisk(PyObject * s, PyObject * args);
static PyMethodDef isysModuleMethods[] = {
{ "ejectcdrom", (PyCFunction) doEjectCdrom, METH_VARARGS, NULL },
@@ -168,6 +171,8 @@ static PyMethodDef isysModuleMethods[] = {
{ "getIPAddress", (PyCFunction) doGetIPAddress, METH_VARARGS, NULL},
{ "resetFileContext", (PyCFunction) doResetFileContext, METH_VARARGS, NULL },
{ "isWireless", (PyCFunction) isWireless, METH_VARARGS, NULL },
+ { "biosDiskProbe", (PyCFunction) doProbeBiosDisks, METH_VARARGS,NULL},
+ { "getbiosdisk",(PyCFunction) doGetBiosDisk, METH_VARARGS,NULL},
{ NULL }
} ;
@@ -1435,3 +1440,21 @@ static PyObject * start_bterm(PyObject * s, PyObject * args) {
return Py_BuildValue("i", isysStartBterm());
}
+
+static PyObject * doProbeBiosDisks(PyObject * s, PyObject * args) {
+ if (!PyArg_ParseTuple(args, "")) return NULL;
+
+
+ return Py_BuildValue("i", probeBiosDisks());
+}
+
+static PyObject * doGetBiosDisk(PyObject * s, PyObject * args) {
+ char *mbr_sig;
+ char *diskname;
+
+ if (!PyArg_ParseTuple(args, "s", &mbr_sig)) return NULL;
+
+ diskname = getBiosDisk(mbr_sig);
+ return Py_BuildValue("s", diskname);
+
+}