From: Stefan Schantl Date: Sat, 23 Mar 2024 10:56:25 +0000 (+0100) Subject: installer: Allow writing to the debug console from anywhere X-Git-Tag: v2.29-core186~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e3b022a831e06f9f1ab0340534778cdf0dc95d1;p=ipfire-2.x.git installer: Allow writing to the debug console from anywhere Signed-off-by: Stefan Schantl Signed-off-by: Arne Fitzenreiter --- diff --git a/src/installer/hw.c b/src/installer/hw.c index 3fa8b889e0..ba6064cf50 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -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]; diff --git a/src/installer/main.c b/src/installer/main.c index 47daccdaa8..30f02d8cbe 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -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];