On 06/30/2010 02:44 PM, Martin Sivak wrote:
- also make sure the terminal is in usable state when back in init
This looks good, except:
+ /* check for development mode early */ + int fdn; + if ((fdn = open("/proc/cmdline", O_RDONLY, 0)) != -1) { + int len = read(fdn, buf, sizeof(buf) - 1); + close(fdn); + if (len> 0&& strstr(buf, "devel")) { + printf("Enabling development mode - cores will be dumped\n"); + isDevelMode = 1; + } + }
this duplicates the command line processing in loader.c. I would prefer putting this into parseCmdLineFlags() and moving execution of that function to 'soon enough' place.
Ales _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list