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]
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
new directory from module? [solved]
Last edited by pfisher on 23 Mar 2018, 14:29, edited 1 time in total.
new directory from module?
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
new directory from module?
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.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
new directory from module?
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.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
new directory from module?
Actually I was thinking of a fanthom command called dir2xzm. But the same command and options are used in it.
Ed
new directory from module?
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!
new directory from module?
Using keep-as-directory worked as I hoped. I now have a directory at the root level containing all my local web files.