I have a module containing a directory with dozens of files for a local site. When the kiosk iso runs, those files end up extracting to the root level, loose. Is there a way to make my module simply implement a folder (anywhere, so long as it is predictable and can be set to homepage)? Otherwise, would I need to have a script run at start to create a directory and then copy all the files into it (ugh)? That seems like it would take too long each startup. In other words, I am hoping:
some_module.xzm
|-->directory
|---->files
can extract somewhere predictable and retain that structure so "homepage" looks for /directory/files as below
root
|-->same directory name
|---->same directory files
I've seen posts about it but the closest I've come is all the files loose at the root level, as mentioned.
new directory from module? [solved]
Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
pfisher
Ed_P
new directory from module?
Post#3 by pfisher » 22 Mar 2018, 16:33
Hi. I used the prescribed method of
mksquashfs /(from location)/* /(to location)/xzm/05-website.xzm -comp xz -b 256K -Xbcj x86 -noappend
Thank you
mksquashfs /(from location)/* /(to location)/xzm/05-website.xzm -comp xz -b 256K -Xbcj x86 -noappend
Thank you
pfisher
new directory from module?
Post#4 by pfisher » 22 Mar 2018, 16:56
You asking the question made me dig further and I did find the option for mksquashfs of "keep-as-directory". I suspect you may have been getting at that, so I will try it and update this thread.
pfisher
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
new directory from module?
Post#5 by fanthom » 22 Mar 2018, 17:21
You need to run the mksquashfs command against the top folder and not the files inside the folder.
Top folder wont be included in the module.
Thanks
Top folder wont be included in the module.
Thanks
Please add [Solved] to your thread title if the solution was found.
fanthom
Ed_P
new directory from module?
Post#7 by pfisher » 23 Mar 2018, 12:25
I used the same mksquashfs command as mentioned earlier, but without the /* in order to do it against the top folder. It produced the same result. I will try the keep-as-directory option next and report back. Thanks for your time!
pfisher