X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrub.c;h=579cc6b106b63870f2db9128617122c5dbd4cd7a;hb=760a1c84d7e83fede50bb635749f092fb8b191c0;hp=86e812e9a49c725936f8e6853c0b88d3b61ae90e;hpb=0f2e9c84e9ff1071260770930068642ecc8ac0d9;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 86e812e..579cc6b 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -26,16 +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, -1); - IS_DEVICE (device, -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1; @@ -45,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; }