]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Allow writing to the debug console from anywhere
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 23 Mar 2024 10:56:25 +0000 (11:56 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 26 Mar 2024 07:34:27 +0000 (07:34 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/installer/hw.c
src/installer/main.c

index 3fa8b889e03453fcbe2929320371ad6004be2d61..ba6064cf5009ebf7c4d43e4daefd6fce5572d6a1 100644 (file)
@@ -44,6 +44,8 @@
 
 #include "hw.h"
 
+extern FILE* flog;
+
 static int system_chroot(const char* output, const char* path, const char* cmd) {
        char chroot_cmd[STRING_SIZE];
 
index 47daccdaa80ec9dd80bd9455192e4585a781fa82..30f02d8cbe9ca3ff47932d55709b6778e0bea8c6 100644 (file)
@@ -29,6 +29,8 @@
 
 extern char url[STRING_SIZE];
 
+FILE* flog = NULL;
+
 static int newtChecklist(const char* title, const char* message,
                unsigned int width, unsigned int height, unsigned int num_entries,
                const char** entries, int* states) {
@@ -377,7 +379,6 @@ int main(int argc, char *argv[]) {
        sethostname(DISTRO_SNAME, 10);
 
        /* Log file/terminal stuff. */
-       FILE* flog = NULL;
        if (argc >= 2) {
                logfile = argv[1];