[master 3/3] Display a banner when (re)starting Anaconda.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also do restart-anaconda a bit sooner.
---
 loader/loader.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 041c9e8..53f13d2 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1779,6 +1779,7 @@ void loaderUsrXHandler(int signum) {
 
 void restart_anaconda() {
     if (access("/tmp/restart_anaconda", R_OK))
+        printf("Starting Anaconda version %s.\n", VERSION);
         return;
 
     puts("Restarting Anaconda.");
@@ -1962,6 +1963,11 @@ int main(int argc, char ** argv) {
     /* disable console logging so we don't clog the ttys */
     klogctl(8, NULL, 1);
 
+    /* If the anaconda process is now being restarted, we need to do some
+     * environment cleanup first.
+     */
+    restart_anaconda();
+
     /* check for development mode early */
     if (cmdline && g_hash_table_lookup_extended(cmdline, "devel", NULL, NULL)) {
         printf("Enabling development mode - cores will be dumped\n");
@@ -2006,11 +2012,6 @@ int main(int argc, char ** argv) {
     /* Set this now so it's valid for all udev trigger calls. */
     system("udevadm control --env=ANACONDA=1");
 
-    /* If the anaconda process is now being restarted, we need to do some
-     * environment cleanup first.
-     */
-    restart_anaconda();
-
     if (!access("/var/run/loader.run", R_OK)) {
         printf(_("loader has already been run.  Starting shell.\n"));
         execl("/bin/sh", "-/bin/sh", NULL);
-- 
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux