diff options
Diffstat (limited to 'backend/bundlers/ext2/cp.php')
-rw-r--r-- | backend/bundlers/ext2/cp.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/bundlers/ext2/cp.php b/backend/bundlers/ext2/cp.php new file mode 100644 index 0000000..befbd91 --- /dev/null +++ b/backend/bundlers/ext2/cp.php @@ -0,0 +1,6 @@ +<?php +makedir('ext2'); +execute_command('Mount ext2 image', "mount -o loop -t ext2 '$workdir/image.ext2' '$workdir/ext2'"); +execute_command('Copy files to ext2', "cp -va '$imagedir/*' '$workdir/ext2/'"); +execute_command('Unmount ext2 image', "umount '$workdir/ext2'"); +?> |