Don't require external insmod.static.
[febootstrap.git] / helper / ext2initrd.c
index 3d765ca..17af3bd 100644 (file)
@@ -155,15 +155,6 @@ ext2_make_initrd (const char *modpath, const char *initrd)
   free (cmd);
   free_module_deps ();
 
-  /* Copy in insmod static binary. */
-  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 %s failed", INSMODSTATIC);
-  free (cmd);
-
   /* Copy in the init program, linked into this program as a data blob. */
   char *init = xasprintf ("%s/init", dir);
   int fd = open (init, O_WRONLY|O_TRUNC|O_CREAT|O_NOCTTY, 0755);