X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fgrub.c;fp=daemon%2Fgrub.c;h=118771fa0001d069f21113b59475fd5fba53e5e6;hp=86e812e9a49c725936f8e6853c0b88d3b61ae90e;hb=1997858e90da728287ef26a6d01a5766ac914312;hpb=966dbd977f12b639169a48042b558834f627e5f8 diff --git a/daemon/grub.c b/daemon/grub.c index 86e812e..118771f 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -34,7 +34,7 @@ do_grub_install (char *root, char *device) NEED_ROOT (-1); ABS_PATH (root, -1); - IS_DEVICE (device, -1); + RESOLVE_DEVICE (device, return -1); if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf");