summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_boot_img b/make_boot_img
index acfb27093..09b1b9222 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -41,7 +41,7 @@ sub initrd {
_ "echo y | mke2fs $tmp";
_ "$sudo mount $tmp $mnt -o loop";
_ "$sudo cp -a $instdir/$inst1/* $mnt";
- _ "$sudo install -d $mnt/modules";
+ _ "sudo cp -f install_${type}_modules/* $mnt/modules/" if -d "install_${type}_modules";
_ "$sudo cp -f modules/${type}_modules.cgz $mnt/modules/modules.cgz";
_ "$sudo cp -f modules/modules.dep $mnt/modules/";
_ "$sudo umount $mnt";