[ostree] ostree-prepare-root: log informational messages to stdout



commit 5c1839c4db88d1bf227939abd018492dba84aee3
Author: Daniel Drake <drake endlessm com>
Date:   Mon Mar 9 12:20:18 2015 -0600

    ostree-prepare-root: log informational messages to stdout
    
    ostree-prepare-root was logging normal, informational messages
    to stderr which the systemd unit points to the console.
    
    To achieve silent boot, log these ordinary messages to stdout only.

 src/switchroot/ostree-prepare-root.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c
index f24409f..bb9ba13 100644
--- a/src/switchroot/ostree-prepare-root.c
+++ b/src/switchroot/ostree-prepare-root.c
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
     }
 
   snprintf (destpath, sizeof(destpath), "%s/%s", root_mountpoint, ostree_target);
-  fprintf (stderr, "Examining %s\n", destpath);
+  printf ("Examining %s\n", destpath);
   if (lstat (destpath, &stbuf) < 0)
     {
       perrorv ("Couldn't find specified OSTree root '%s': ", destpath);
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
       perrorv ("realpath(%s) failed: ", destpath);
       exit (EXIT_FAILURE);
     }
-  fprintf (stderr, "Resolved OSTree target to: %s\n", deploy_path);
+  printf ("Resolved OSTree target to: %s\n", deploy_path);
   
   /* Work-around for a kernel bug: for some reason the kernel
    * refuses switching root if any file systems are mounted


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