diff options
author | Mike Fulbright <msf@redhat.com> | 2000-12-18 16:10:02 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-12-18 16:10:02 +0000 |
commit | 3af0be9f8c7cf78b7d49ce5efe5062659fa99918 (patch) | |
tree | c6ceae46e3d4821fc942fb1d20c98695780b50ce /isys | |
parent | aaeeebe3e0bf27487bac055239bb96701ec5f50f (diff) | |
download | anaconda-3af0be9f8c7cf78b7d49ce5efe5062659fa99918.tar.gz anaconda-3af0be9f8c7cf78b7d49ce5efe5062659fa99918.tar.xz anaconda-3af0be9f8c7cf78b7d49ce5efe5062659fa99918.zip |
HJ patch.63 - add tag to upgrade complete screen
Diffstat (limited to 'isys')
-rw-r--r-- | isys/cpio.c | 6 | ||||
-rw-r--r-- | isys/otherinsmod.c | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/isys/cpio.c b/isys/cpio.c index 97d411764..6c9985a07 100644 --- a/isys/cpio.c +++ b/isys/cpio.c @@ -12,6 +12,10 @@ int installCpioFile(gzFile fd, char * cpioName, char * outName, int inWin) { int rc; const char * failedFile; + FILE *myfile; + + myfile = fopen("/dev/tty3", "rw"); + if (outName) { map.archivePath = cpioName; map.fsPath = outName; @@ -21,6 +25,8 @@ int installCpioFile(gzFile fd, char * cpioName, char * outName, int inWin) { rc = myCpioInstallArchive(fd, outName ? &map : NULL, 1, NULL, NULL, &failedFile); + fprintf(myfile, "Failed file = %s\n", failedFile); + if (rc || access(outName, R_OK)) { return -1; } diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c index c09798eee..98642d018 100644 --- a/isys/otherinsmod.c +++ b/isys/otherinsmod.c @@ -24,6 +24,11 @@ int ourInsmodCommand(int argc, char ** argv) { char fullName[100]; struct utsname u; + FILE *myfile; + + myfile = fopen("/dev/tty3", "w"); + fprintf(myfile, "Got into ourInsmodCommand()\n"); + uname(&u); #ifdef __sparc__ @@ -33,6 +38,7 @@ int ourInsmodCommand(int argc, char ** argv) { if (argc < 2) { fprintf(stderr, "usage: insmod [-p <path>] <module>.o [params]\n"); + fprintf(myfile, "Error 1\n"); return 1; } @@ -58,6 +64,7 @@ int ourInsmodCommand(int argc, char ** argv) { fd = gzopen(ballPath, "r"); if (!fd) { free(ballPath); + fprintf(myfile, "Error 2\n"); return 1; } @@ -73,6 +80,7 @@ int ourInsmodCommand(int argc, char ** argv) { continue; } free(ballPath); + fprintf(myfile, "Error 3\n"); return 1; } @@ -87,10 +95,14 @@ int ourInsmodCommand(int argc, char ** argv) { argv[0] = "insmod"; argv[1] = file; + fprintf(myfile, "Calling combined_insmod_main()\n"); + rc = combined_insmod_main(argc, argv); if (rmObj) unlink(file); + fprintf(myfile, "combined_insmod_main() returned %d\n", rc); + return rc; } |