X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fext2initrd.c;h=f10aef27c99a0471c3ce2862056e8a216f2f706e;hb=48ba44a6751f5455a3afb37fb5809abc507696e1;hp=c9812322b22a0d733299f6acfbc3dad36a4eb11b;hpb=89e336ee166be538e376d288fb2b3fbbffd66d4c;p=febootstrap.git diff --git a/helper/ext2initrd.c b/helper/ext2initrd.c index c981232..f10aef2 100644 --- a/helper/ext2initrd.c +++ b/helper/ext2initrd.c @@ -144,12 +144,12 @@ ext2_make_initrd (const char *modpath, const char *initrd) free_module_deps (); /* Copy in insmod static binary. */ - cmd = xasprintf ("cp /sbin/insmod.static %s", dir); + cmd = xasprintf ("cp %s %s", INSMODSTATIC, dir); if (verbose >= 2) fprintf (stderr, "%s\n", cmd); r = system (cmd); if (r == -1 || WEXITSTATUS (r) != 0) error (EXIT_FAILURE, 0, - "ext2_make_initrd: copy /sbin/insmod.static failed"); + "ext2_make_initrd: copy %s failed", INSMODSTATIC); free (cmd); /* Copy in the init program, linked into this program as a data blob. */