From a333f52121138dbd3307de11f2e9a3a80d88bef1 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Mon, 21 Apr 2008 19:49:13 +0000 Subject: [PATCH] add args property, make some cleanup --- tools/emile-install.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/emile-install.c b/tools/emile-install.c index 23496db..747b235 100644 --- a/tools/emile-install.c +++ b/tools/emile-install.c @@ -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 */