summaryrefslogtreecommitdiffstats
path: root/rescue/kernel_read_part.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-29 17:53:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-29 17:53:54 +0000
commit38f7f8427f6300ccacb464a9d3b95e89d6f83ffc (patch)
tree4bb5bf77bbe6128d4b458b30a277d655e6bf2e2b /rescue/kernel_read_part.c
parent42a8773fe0e728410692098f2a11652ef5752849 (diff)
downloaddrakx-38f7f8427f6300ccacb464a9d3b95e89d6f83ffc.tar
drakx-38f7f8427f6300ccacb464a9d3b95e89d6f83ffc.tar.gz
drakx-38f7f8427f6300ccacb464a9d3b95e89d6f83ffc.tar.bz2
drakx-38f7f8427f6300ccacb464a9d3b95e89d6f83ffc.tar.xz
drakx-38f7f8427f6300ccacb464a9d3b95e89d6f83ffc.zip
- drop oem & recovery code (which was broken)
- will be replaced with a root password + user accounts + network configuration a la drakfirsttime
Diffstat (limited to 'rescue/kernel_read_part.c')
-rw-r--r--rescue/kernel_read_part.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/rescue/kernel_read_part.c b/rescue/kernel_read_part.c
deleted file mode 100644
index 279dfe787..000000000
--- a/rescue/kernel_read_part.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include <sys/mount.h>
-#include <fcntl.h>
-
-void die(char *msg)
-{
- perror(msg);
- exit(1);
-}
-
-void kernel_read(char *dev)
-{
- int fd;
- if ((fd = open(dev, O_RDONLY)) == -1) die("can't open device");
- ioctl(fd, BLKRRPART, 0);
- close(fd);
-}
-
-int main(int argc, char **argv)
-{
- if (argc != 2) {
- fprintf(stderr, "usage: kernel_read_part <hard drive device>\n");
- exit(1);
- }
- kernel_read(argv[1]);
-}