Lzma files contains the Meilix file system, we get the same content inside it which we get when when we mount an ISO file. Lzma file is basically an image of the Meilix Operating System.
We need to build a lzma file of 64 bit for Meilix. If we extract the lzma file we will find a README file which contains all the information of the ISO used to build this lzma file.
When we search through the files we find a file named README.diskdefines which contains the information of the file system.
The first line depicts that name and version of the ISO with the architecture from where this file system has been taken.
So we thought to build the same system with release amd64.
We download the ISO and tried to compress it into lzma.tar.
Decompression of lzma.tar file is easy but to compress a file into lzma.tar is done as follows:
When using tar, the first word after -f is the output filename
We mounted the lubuntu 12.10 64 bit ISO and copied it into another folder. Then tried to compress it with lzma algorithm. It resulted in a big size file which can’t be pushed to Github.
So we find out that a file name filesystem.casper is largest in size and can also be removed. Therefore we removed that file and build the ISO again and pushed.
We tested the ISO and file that the build is working file.
- One we need to push the 64 bit lzma
- We need to edit this line in build.sh of Meilix
Finally we got the file as image-amd64.tar.lzma
So, if we look into the Readme file we can found the version which it used for building the zip.
We can see that it is based on the same version but the architecture is different.
- GNU lzma tar: https://www.gnu.org/software/tar/manual/html_node/gzip.html
- Python lzma compression: https://docs.python.org/3/library/lzma.html