Page 1 of 1

Creating a module from standalone application

Posted: 21 Dec 2017, 21:21
by dshaner
I am trying to install an application that is installed into a folder like /home/dshaner/sierra/ The folder contains everything that it needs to run the application.

How do I convert this into a module? I tried copying this folder into the following folder structure: /home/dshaner/tmp/usr/lib64/ I followed the steps on module creation, but when I install the kiosk, the files and folder structure are in the root of the installation.

Any help would be greatly appreciated.

Creating a module from standalone application

Posted: 22 Dec 2017, 12:25
by fanthom
Hi David,

You need to preserve correct paths in your module (executables ususally goes to /usr/bin, libraries to /usr/lib64, icons to /usr/schare/icons or /usr/share/pixmaps, etc). Then you need to copy content of your custom module to some top directory (e.g. squashfs_root) and squash everything into a module.

Sample:

Code: Select all

/tmp/squashfs_root/usr/bin/my_app
/tmp/squashfs_root/usr/lib64/my_library.so
/tmp/squashfs_root/usr/share/pixmaps/my_icon.png
Once done you need to create a module targetting the top directory:

Code: Select all

mksquashfs /tmp/squashfs_root /tmp/my_module.xzm -comp xz -b 256K -Xbcj x86 -noappend
Perhaps you could unsquash some existing module and check its content:

Code: Select all

unsquashfs 004-wifi.xzm
Thanks