mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
add args property, make some cleanup
This commit is contained in:
parent
68b7b1f4dd
commit
a333f52121
@ -192,7 +192,6 @@ static int set_config(char *image, int verbose, char *config_path,
|
||||
char *ramdisk_ondisk, *kernel_ondisk;
|
||||
int8_t *configuration;
|
||||
int8_t *conffile;
|
||||
char buf[64];
|
||||
int fd;
|
||||
struct stat st;
|
||||
int i;
|
||||
@ -209,6 +208,7 @@ static int set_config(char *image, int verbose, char *config_path,
|
||||
static char *known_properties[] ={
|
||||
"kernel",
|
||||
"initrd",
|
||||
"args",
|
||||
"chainloader"
|
||||
};
|
||||
|
||||
@ -284,10 +284,7 @@ static int set_config(char *image, int verbose, char *config_path,
|
||||
{
|
||||
if (config_get_property(conffile,
|
||||
prolog[i], property) != -1)
|
||||
{
|
||||
sprintf(buf, "%s", property);
|
||||
config_set_property(configuration, prolog[i], buf);
|
||||
}
|
||||
config_set_property(configuration, prolog[i], property);
|
||||
}
|
||||
|
||||
/* get kernel properties */
|
||||
|
Loading…
Reference in New Issue
Block a user