X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrub.c;h=579cc6b106b63870f2db9128617122c5dbd4cd7a;hb=760a1c84d7e83fede50bb635749f092fb8b191c0;hp=0a49c45dac1dedc8c056809fcff468e1401d1c9f;hpb=0c07f0d23698798475e0d09491812aca52440328;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 0a49c45..579cc6b 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -26,15 +26,12 @@ #include "actions.h" int -do_grub_install (char *root, char *device) +do_grub_install (const char *root, const char *device) { int r; char *err; char *buf; - NEED_ROOT (-1); - ABS_PATH (root, return -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1; @@ -44,7 +41,7 @@ do_grub_install (char *root, char *device) free (buf); if (r == -1) { - reply_with_error ("grub-install: %s", err); + reply_with_error ("%s", err); free (err); return -1; }