From: Stefan Schantl Date: Sat, 23 Mar 2024 09:32:07 +0000 (+0100) Subject: installer: Allow writing to the debug console from anywhere X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7585e1984fe2c15933536fbab9d41462e9572ce6;p=people%2Fstevee%2Fipfire-2.x.git installer: Allow writing to the debug console from anywhere Signed-off-by: Stefan Schantl --- diff --git a/src/installer/hw.c b/src/installer/hw.c index 3fa8b889e..ba6064cf5 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 47daccdaa..30f02d8cb 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];