mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
installer: Enable new partitioning code to be run in unattended mode
The first disk of the system will automatically be used and a standard installation will be done. After that is done, the system will reboot into the freshly installed system and execute setup.
This commit is contained in:
@@ -52,6 +52,7 @@ int runcommandwithprogress(int width, int height, const char *title, const char
|
||||
int lines, char *text, ...);
|
||||
int runcommandwithstatus(const char *command, const char* title, const char *message, const char* output);
|
||||
int runhiddencommandwithstatus(const char *command, const char* title, const char *message, const char* output);
|
||||
int splashWindow(const char* title, const char* message, unsigned int timeout);
|
||||
int checkformodule(const char *module);
|
||||
int replace(char filename1[], char *from, char *to);
|
||||
char* get_version(void);
|
||||
|
||||
@@ -90,6 +90,16 @@ int runhiddencommandwithstatus(const char *command, const char* title, const cha
|
||||
return rc;
|
||||
}
|
||||
|
||||
int splashWindow(const char* title, const char* message, unsigned int timeout) {
|
||||
statuswindow(60, 4, title, message);
|
||||
|
||||
// Wait so the user can read this message
|
||||
sleep(timeout);
|
||||
newtPopWindow();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* This one borrowed from redhat installer. */
|
||||
int runcommandwithprogress(int width, int height, const char *title, const char *command,
|
||||
int lines, char *text, ...) {
|
||||
|
||||
Reference in New Issue
Block a user