diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-11-17 02:42:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-11-17 02:42:01 +0000 |
commit | cbe3ef9f56e963035b8d3f9b2fa3eb5fb520d90b (patch) | |
tree | b396c980b94767e5e213d993924e8b17351a9212 /loader2 | |
parent | 6efd407a10528e090aaac0ef5215ac3173cfa94b (diff) | |
download | anaconda-cbe3ef9f56e963035b8d3f9b2fa3eb5fb520d90b.tar.gz anaconda-cbe3ef9f56e963035b8d3f9b2fa3eb5fb520d90b.tar.xz anaconda-cbe3ef9f56e963035b8d3f9b2fa3eb5fb520d90b.zip |
2004-11-16 Jeremy Katz <katzj@redhat.com>
* loader2/loader.c (setupRamdisk): Remove old code.
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/loader.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/loader2/loader.c b/loader2/loader.c index 25b4d0a0d..69ef58703 100644 --- a/loader2/loader.c +++ b/loader2/loader.c @@ -116,46 +116,6 @@ static int numMethods = sizeof(installMethods) / sizeof(struct installMethod); /* JKFIXME: bad hack for second stage modules without module-info */ struct moduleBallLocation * secondStageModuleLocation; -#if 0 -#if !defined(__s390__) && !defined(__s390x__) -#define RAMDISK_DEVICE "/dev/ram" -#else -#define RAMDISK_DEVICE "/dev/ram2" -#endif - -int setupRamdisk(void) { - gzFile f; - static int done = 0; - - if (done) return 0; - - done = 1; - - f = gunzip_open("/etc/ramfs.img"); - if (f) { - char buf[10240]; - int i, j = 0; - int fd; - - fd = open(RAMDISK_DEVICE, O_RDWR); - logMessage("copying file to fd %d", fd); - - while ((i = gunzip_read(f, buf, sizeof(buf))) > 0) { - j += write(fd, buf, i); - } - - logMessage("wrote %d bytes", j); - close(fd); - gunzip_close(f); - } - - if (doPwMount(RAMDISK_DEVICE, "/tmp/ramfs", "ext2", 0, 0, NULL, NULL, 0, 0)) - logMessage("failed to mount ramfs image"); - - return 0; -} -#endif - void setupRamfs(void) { mkdirChain("/tmp/ramfs"); doPwMount("none", "/tmp/ramfs", "ramfs", 0, 0, NULL, NULL, 0, 0); |