- ejectCdrom();
-
+ if (!FL_NOEJECT(flags))
+ ejectCdrom();
+ else
+ logMessage(INFO, "noeject in effect, not ejecting cdrom");
+
Ack in general.
You can optionally define a helper function somewhere, something like
eject_cdrom_if(flags) and that will check the flag itself. Given it's
rhel5 anyway and it's loader anyway I do not insist at all.
Ales
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
09-07-2010, 02:10 PM
Chris Lumens
Add noeject support to loader2 (#477887)
> Ack in general.
>
> You can optionally define a helper function somewhere, something
> like eject_cdrom_if(flags) and that will check the flag itself.
> Given it's rhel5 anyway and it's loader anyway I do not insist at
> all.
Or just have ejectCdrom do the flag check.
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
09-07-2010, 03:16 PM
"Brian C. Lane"
Add noeject support to loader2 (#477887)
On Tue, Sep 07, 2010 at 10:10:31AM -0400, Chris Lumens wrote:
> > Ack in general.
> >
> > You can optionally define a helper function somewhere, something
> > like eject_cdrom_if(flags) and that will check the flag itself.
> > Given it's rhel5 anyway and it's loader anyway I do not insist at
> > all.
>
> Or just have ejectCdrom do the flag check.
Yeah, I didn't do that because it didn't cover all the cases. Seems more
clear to keep it out of the eject function.
--
Brian C. Lane / Anaconda Team
Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list