diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-06 12:22:58 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-06 12:22:58 +0000 |
commit | 72e9f7c254ff235ab25dc42952e7069099ad35da (patch) | |
tree | e1d2cd7996569705b3c21c655be1e48080615fa0 /helper | |
parent | 60baadc1b201d35b30f23220a44994964936820d (diff) | |
download | febootstrap-72e9f7c254ff235ab25dc42952e7069099ad35da.tar.gz febootstrap-72e9f7c254ff235ab25dc42952e7069099ad35da.tar.xz febootstrap-72e9f7c254ff235ab25dc42952e7069099ad35da.zip |
configure: Check for insmod.static and fail if not present.
This is not packaged on Debian/Ubuntu, but we require it. Fail
with a useful error message if it is not available.
Diffstat (limited to 'helper')
-rw-r--r-- | helper/ext2initrd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |