mirror of
https://github.com/vivier/EMILE.git
synced 2026-10-22 04:02:33 +00:00
add args property, make some cleanup
This commit is contained in:
1 parent
68b7b1f4dd
commit
a333f52121
1 file changed
+2
-5
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user