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:
Michael Tremer
2014-10-11 18:59:31 +02:00
parent 746e71a629
commit a3e135c8bd
6 changed files with 49 additions and 10 deletions

View File

@@ -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);

View File

@@ -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, ...) {