vaeth / squashmount Goto Github PK
View Code? Open in Web Editor NEWInit and management script for mounting rewritable squashfs-compressed data
Init and management script for mounting rewritable squashfs-compressed data
The ebuild has:
SRC_URI="http://github.com/vaeth/${PN}/tarball/${PV} -> ${P}.tar.gz"
Why not https://github.com?
I have a monolithic kernel with everything built-in and squashmount fails to detect that overlay, overlayfs [ which are in that order in my squashmount.pl ] are available, mounts images with squashfuse_II, readonly.
With squashfuse unmerged it fails to mount them at all, while obviously squashfs is avaiable just not as module but buil-in
Edit. Found the settings related to modprobing, attempting to solve
Edit2. I'm a bit confused by the syntax, should it be @order = qw(overlay!!, overlayfs!!);
for skipping modprobing and using built-in?
Edit3. It was @squashorder
That I needed, case closed
Well, I think that most probably it's not squashmount to blame, but I still consider you the right person to ask..
I use squashmount on my Gentoo desktop and it works just fine. However, when I tried to set it up on a laptop (with nearly identical squashmount.pl), it screws up. After some file is deleted it doesn't disappear as it should but is still there yet unreadable:
ls: cannot access 'FILENAME': No such file or directory
???????????? ? ? ? ? ? FILENAME
The systems differ in kernel versions (4.19 on the laptop) and underlying FS (xfs vs jfs on the laptop).
The kernel config options that I consider to be relevant look the same.
I ran out of ideas where to look...
Hello Vaeth
First thanks for the amazing tools you provide us with : wow !
First function is a fatal();
which seems to have replaced print()+exit() combo :
Comment line 3 should reflect it.
Line 226, "customn" variable name should not end with a "N".
Thanks again, I mean it
Arnaudv6
After resquashing/reboot emerge --sync
fails as follows
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git fetch origin --depth 1
remote: Enumerating objects: 75, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 38 (delta 28), reused 35 (delta 26), pack-reused 0
Unpacking objects: 100% (38/38), done.
From https://github.com/gentoo-mirror/gentoo
+ c56fe5d7ea...06d66bb5d5 stable -> origin/stable (forced update)
error: Entry 'dev-python/nagiosplugin/Manifest' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'refs/remotes/origin/stable'.
!!! git merge error in /usr/portage
Action: sync for repo: gentoo, returned code = 128
/ is mounted with lazytime option
That is i want to make it possible to mount (one at a time, it's for dosbox compressed games) a fuse union filesystem that joins a normal persistent directory (for saves and config files per each game) and a squashfs image (for the games). Then i want to incorporate this into the linux version of some frontend.
However, requiring root for every mount and umount of the games is a major turn off, considering the user owns all of them (they're in the home dir). Is there anyway to avoid this?
Since I squashed /usr/lib64/qt5
plasma panels and latte-doc started to malfunction and not be able to position correctly on screen.
Is it possible that squashmount removed some symlink or creating any problem?
I just run into an issue w/ the latest release available on the gentoo overlay.
I called squashmount start w/ default values on a system w/o squashfs support either compiled in or as a module (but squashfs-tools and union-fuse installed). squashmount performed the compression (mksquashfs), purged the source directories and then notified the failure to mount the squashfs image, moving on to the next directory (db, src, portage).
I have my blame (all my systems have squashfs support, I wonder why this one lacked it even though squashfs-tools were installed!) but I guess a check before starting up would be a plus.
On starting by systemd or manually with squashmount mount
, I get these errors: http://pastie.org/private/0gwf4sfdeq4uncphfkhva
Unfortunately, I know nothing at all about Perl, so I don’t know about any other log files I might provide; please ask as needed.
I downgraded to 6.3, which works without any errors.
Hello, when bumping to last version,
I get journalctl reporting this error :
août 10 19:52:23 Gentoo-2600k systemd[1]: [/usr/lib64/systemd/system/squashmount.service:14] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service
I guess this option was added to a systemd version I don't have yet.
I commented the option in service file and it seems to work fine...
Still I expect ebuild should require said systemd version, or adapt...
Thanks for you soft : I have been hapilly using it up untill now !
not sure whether it's really an issue. but we should be aware that /sbin should be in the path....
here an excerpt of an cron email...
...
Hello,
First, sorry for my English.
Second, thank you very much for squashmount, it's very useful for me to squeeze and maintain a lot of data.
After my last world upgrade, i had a strange behavior by using squashfuse (only) in @squashorder setting :
# grep fuse /etc/squashmount.pl
@order = qw(overlay overlayfs aufs! unionfs-fuse! unionfs??# funionfs??#);
@squashorder = qw(squashfuse!);
Every mount handled by squashmount returned such error :
* mounting with squashmount ...
* [portage]: mounting...
fuse: unknown option(s): `-o nonempty'
* [portage]: warning: squashfuse failed
First workaround used was to add squashfs an an alternative :
@squashorder = qw(squashfuse! squashfs!);
It worked but wasn't satisfactory. After few search i found that noempty option was removed from libfuse :
Looked if any change / issue was reported on this project, none, so i tried a quick and dirty change , removing this parameter in /usr/bin/squashmount :
# cp /usr/bin/squashmount /root/squashmount.$(date +%Y%m%d)
# sed -i 's/,\ \x27-o\x27,\ \x27nonempty\x27//g' /usr/bin/squashmount
It worked and i can use again squashfuse for mounting squash files.
For information, here are the related currently installed packages :
sys-fs/squashfs-tools-4.5_alpha20210318::mv
sys-fs/squashfuse-0.1.104::mv
sys-fs/squashmount-22.0.1::mv
sys-fs/fuse-3.10.2:3::gentoo
Did i miss something during updates ?
Thank in advance
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.