deploy: Less usage of g_print

No need to spam the console here.
This commit is contained in:
Colin Walters 2014-03-11 13:16:37 -04:00
parent bf918f1586
commit 1f7f7382b1
1 changed files with 1 additions and 8 deletions

View File

@ -138,7 +138,7 @@ merge_etc_changes (GFile *orig_etc,
} }
if (modified->len > 0 || removed->len > 0 || added->len > 0) if (modified->len > 0 || removed->len > 0 || added->len > 0)
g_print ("ostadmin: Processing config: %u modified, %u removed, %u added\n", g_print ("ostadmin: Processing /etc: %u modified, %u removed, %u added\n",
modified->len, modified->len,
removed->len, removed->len,
added->len); added->len);
@ -533,12 +533,10 @@ merge_configuration (OstreeSysroot *sysroot,
if (ostree_sepolicy_get_name (sepolicy) != NULL) if (ostree_sepolicy_get_name (sepolicy) != NULL)
{ {
g_print ("ostadmin: Using SELinux policy '%s'\n", ostree_sepolicy_get_name (sepolicy));
if (!selinux_relabel_dir (sysroot, sepolicy, deployment_etc_path, "etc", if (!selinux_relabel_dir (sysroot, sepolicy, deployment_etc_path, "etc",
cancellable, error)) cancellable, error))
goto out; goto out;
} }
g_print ("ostadmin: Created %s\n", gs_file_get_path_cached (deployment_etc_path));
} }
if (source_etc_path) if (source_etc_path)
@ -1182,11 +1180,6 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
gs_unref_object OstreeBootloader *bootloader = _ostree_sysroot_query_bootloader (self); gs_unref_object OstreeBootloader *bootloader = _ostree_sysroot_query_bootloader (self);
gs_unref_object GFile *new_loader_entries_dir = NULL; gs_unref_object GFile *new_loader_entries_dir = NULL;
if (bootloader)
g_print ("Detected bootloader: %s\n", _ostree_bootloader_get_name (bootloader));
else
g_print ("Detected bootloader: (unknown)\n");
new_loader_entries_dir = ot_gfile_resolve_path_printf (self->path, "boot/loader.%d/entries", new_loader_entries_dir = ot_gfile_resolve_path_printf (self->path, "boot/loader.%d/entries",
new_bootversion); new_bootversion);
if (!gs_file_ensure_directory (new_loader_entries_dir, TRUE, cancellable, error)) if (!gs_file_ensure_directory (new_loader_entries_dir, TRUE, cancellable, error))