summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'backend/bundlers/livecd.php')
-rw-r--r--backend/bundlers/livecd.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/bundlers/livecd.php b/backend/bundlers/livecd.php
index ec4de83..d8a40fd 100644
--- a/backend/bundlers/livecd.php
+++ b/backend/bundlers/livecd.php
@@ -9,8 +9,9 @@ function bundle_livecd($I, $W, &$opts) {
makedir("$I/boot");
execute_command('Extract kernel, initrd, and squashfs from CD image ', LIB."/bkisofs-cli '$minimaliso' extract /isolinux/gentoo '$I/boot/kernel' extract /isolinux/gentoo.igz '$I/boot/initrd' extract /image.squashfs '$W/'");
file_put_contents("$W/unsquashfs-files", "/lib64/modules\n/lib/modules\n");
- execute_command('Copy kernel modules from SquashFS to image', "unsquashfs -i -d '$I' -e '$W/unsquashfs-files' '$W/image.squashfs'");
- execute_command('Compress finished image to squashfs', "mksquashfs '$I' '$W/image.squashfs' -noappend -info");
+ execute_command('Extract kernel modules from SquashFS', "unsquashfs -i -d '$W/modules' -e '$W/unsquashfs-files' '$W/image.squashfs'");
+ execute_command('Copy extracted modules to image', "cp -av '$W/modules/*' '$I/'");
+execute_command('Compress finished image to squashfs', "mksquashfs '$I' '$W/image.squashfs' -noappend -info");
execute_command('Create ISO image', LIB."/bkisofs-cli '$minimaliso' replace /image.squashfs '$W/image.squashfs' write '$W/image.iso'");
return "$W/image.iso";
}