X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrub.c;h=579cc6b106b63870f2db9128617122c5dbd4cd7a;hb=760a1c84d7e83fede50bb635749f092fb8b191c0;hp=8fcd911d17d6aa7c81d0cb447ea6af9a8bd6c43f;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 8fcd911..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, return -1); - RESOLVE_DEVICE (device, return -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; }