SFS Files not where expected [Solved]
Posted: Tue 26 Feb 2013, 22:42
Running Frugal Precise 5.4
I have installed OpenBve, which, for the uninitiated, this is a great little train sim.
I also had to load and compile mono in order for it to work, along with TAO, SDL and libgdiplus. It seems Precise already comes with OpenAl, so that was one less thing to do.
I then decided, having got everything working nicely, to create an sfs of the new software. Thinking a bit further I decided it might be wise to create an sfs for OpenBve itself (which also includes TAO) and another for mono, SDL and libgdiplus.
The main reason is that OpenBve might go up in version, and as long as it's still compatible I might not need to get a newer mono. With two sfs's, I can achieve this.
Also, for my first ever sfs attempt, OpenBve is much smaller and self contained than mono.
So, OpenBve is located in /root/my-applications/OpenBve. All required files and sub-directories are contained within it.
I then created a folder structure in /tmp so I ended up with /tmp/OpenBve/root/my-applications/OpenBve. The contents of /root/my-applications/OpenBve were copied into /tmp/OpenBve/root/my-applications/OpenBve.
The sfs was created with mksquashfs /tmp/OpenBve OpenBve.sfs.
This appeared to work, producing an sfs which I moved to /mnt/home. I used the Boot Manager to load the new sfs at boot up.
The /root/my-applications/OpenBve directory was renamed to /root/my-applications/NotOpenBve, just so I didn't lose the working installation.
After re-booting the system, I was expecting to see OpenBve re-appear in /root/my-applications, but it did not.
I eventually located it in ./initrd/pup_ro4/root/my-applications/OpenBve.
I was able to run the game no problem once I had found it.
The question I have (after a quick rendition of war and peace - sorry) is, was my expectation incorrect? I thought that an sfs would effectively put the software back in it's original location. In reality it went into the pup_ro4 instead and was not visible in /root/my-applications.
Have I missed a step somewhere or done something wrong when I set up the directory structure in /tmp? Or just mis-understood how including an sfs works?
In the case of OpenBve the question is more out of curiosity, since the software works pretty much regardless of location.
However, I would really like to get mono into an sfs, but it sprays it's files around several directories in /usr. Although I have a "before" and "after" listing of /usr so I can tell exactly what files I need to get into the sfs, I am worried where they will end up after the sfs creation therefore and if mono will still work.
I hope all that made sense!!!!
Thanks in advance ....
I have installed OpenBve, which, for the uninitiated, this is a great little train sim.
I also had to load and compile mono in order for it to work, along with TAO, SDL and libgdiplus. It seems Precise already comes with OpenAl, so that was one less thing to do.
I then decided, having got everything working nicely, to create an sfs of the new software. Thinking a bit further I decided it might be wise to create an sfs for OpenBve itself (which also includes TAO) and another for mono, SDL and libgdiplus.
The main reason is that OpenBve might go up in version, and as long as it's still compatible I might not need to get a newer mono. With two sfs's, I can achieve this.
Also, for my first ever sfs attempt, OpenBve is much smaller and self contained than mono.
So, OpenBve is located in /root/my-applications/OpenBve. All required files and sub-directories are contained within it.
I then created a folder structure in /tmp so I ended up with /tmp/OpenBve/root/my-applications/OpenBve. The contents of /root/my-applications/OpenBve were copied into /tmp/OpenBve/root/my-applications/OpenBve.
The sfs was created with mksquashfs /tmp/OpenBve OpenBve.sfs.
This appeared to work, producing an sfs which I moved to /mnt/home. I used the Boot Manager to load the new sfs at boot up.
The /root/my-applications/OpenBve directory was renamed to /root/my-applications/NotOpenBve, just so I didn't lose the working installation.
After re-booting the system, I was expecting to see OpenBve re-appear in /root/my-applications, but it did not.
I eventually located it in ./initrd/pup_ro4/root/my-applications/OpenBve.
I was able to run the game no problem once I had found it.
The question I have (after a quick rendition of war and peace - sorry) is, was my expectation incorrect? I thought that an sfs would effectively put the software back in it's original location. In reality it went into the pup_ro4 instead and was not visible in /root/my-applications.
Have I missed a step somewhere or done something wrong when I set up the directory structure in /tmp? Or just mis-understood how including an sfs works?
In the case of OpenBve the question is more out of curiosity, since the software works pretty much regardless of location.
However, I would really like to get mono into an sfs, but it sprays it's files around several directories in /usr. Although I have a "before" and "after" listing of /usr so I can tell exactly what files I need to get into the sfs, I am worried where they will end up after the sfs creation therefore and if mono will still work.
I hope all that made sense!!!!
Thanks in advance ....