diff options
author | Mike Fulbright <msf@redhat.com> | 2003-01-29 03:09:15 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-01-29 03:09:15 +0000 |
commit | 788559703bb9be1442af1c267f76f90fc484bcdf (patch) | |
tree | 3761b74b1d3d7c7f7a58adf9e3fba5b27b564b18 /loader2/cdinstall.c | |
parent | 50094f7980912dd13a47f41d26e31a7a019b6dbe (diff) | |
download | anaconda-788559703bb9be1442af1c267f76f90fc484bcdf.tar.gz anaconda-788559703bb9be1442af1c267f76f90fc484bcdf.tar.xz anaconda-788559703bb9be1442af1c267f76f90fc484bcdf.zip |
only nag about mediacheck if we are not in rescue mode, and dont be anal about .discinfo file unless we are not in rescue
Diffstat (limited to 'loader2/cdinstall.c')
-rw-r--r-- | loader2/cdinstall.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/loader2/cdinstall.c b/loader2/cdinstall.c index 2ccaa3a49..2e44b6cbc 100644 --- a/loader2/cdinstall.c +++ b/loader2/cdinstall.c @@ -250,7 +250,8 @@ static void queryCDMediaCheck(char *dev, int flags) { writeISOStatus(isostatus, mediasum); /* see if we should check image(s) */ - if (!isostatus || FL_MEDIACHECK(flags)) { + /* in rescue mode only test if they explicitly asked to */ + if ((!isostatus && !FL_RESCUE(flags)) || FL_MEDIACHECK(flags)) { startNewt(flags); rc = newtWinChoice(_("CD Found"), _("OK"), @@ -317,8 +318,8 @@ char * setupCdrom(char * location, devMakeInode(kd->known[i].name, "/tmp/cdrom"); if (!doPwMount("/tmp/cdrom", "/mnt/source", "iso9660", 1, 0, NULL, NULL)) { - if (!access("/mnt/source/.discinfo", R_OK) && - !access("/mnt/source/RedHat/base/stage2.img", R_OK)) { + if (!access("/mnt/source/RedHat/base/stage2.img", R_OK) && + (FL_RESCUE(flags) || !access("/mnt/source/.discinfo", R_OK))) { rc = mountStage2("/mnt/source/RedHat/base/stage2.img"); /* if we failed, umount /mnt/source and keep going */ if (rc) { |