Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

[Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 5:15 am

[Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#1 Post by pemartins »

@Adrian all the details are in this thread viewtopic.php?f=104&t=47121 but basically my MX-Snapshot excluded list (at /etc/mx-snapshot-exclude.list) includes:

Code: Select all

# This stops any video drivers from loading - safe option.
etc/X11/xorg.conf
etc/X11/xorg.conf.d/20-nvidia.conf
etc/X11/xorg.conf.d/20-intel.conf
etc/X11/xorg.conf.d/20-radeon.conf
but nevertheless those bastards keep on showing up on my created isos and not letting me boot them in virtualbox (and probably in other machines not using the Radeon driver).

There are printscreens here viewtopic.php?f=104&t=47121&start=10#p469242
Last edited by pemartins on Fri Nov 30, 2018 8:57 pm, edited 1 time in total.

User avatar
Adrian
Developer
Posts: 8230
Joined: Wed Jul 12, 2006 1:42 am

Re: [Bug] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#2 Post by Adrian »

Thanks, I see:

Code: Select all

etc/X11/xorg.conf.d/10-evdev.conf
etc/X11/xorg.conf.d/20-amd.conf
etc/X11/xorg.conf.d/synaptics.conf
I think 10-evdev.conf and synaptics.conf are present on original ISO, so I probably need to exclude only 20-amd.conf

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 5:15 am

Re: [Bug] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#3 Post by pemartins »

Yes get ride of that bastard that kept on ruining my backups! :happy:

Thank you very much for all.

User avatar
Adrian
Developer
Posts: 8230
Joined: Wed Jul 12, 2006 1:42 am

Re: [Bug] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#4 Post by Adrian »

I updated the package, it should trickle down from the repos soon enough...

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 5:15 am

Re: [Bug] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#5 Post by pemartins »

It's fixed. Updated, just created an iso, tested it on virtualbox and all went well, the file etc/X11/xorg.conf.d/20-amd.conf was indeed excluded.

Thank you very much!

Friedrich
Posts: 102
Joined: Sun Dec 23, 2018 2:50 am

Not completely solved?

#6 Post by Friedrich »

Here, booted snapshots and the isos themselves (made on a machine with an Intel IGP) still contain the 20-intel.conf
although its on the exclude list.
Resulting in a blackscreen with blinking cursor on a machine with nvidia 6150LE.
Entering the console from there and removing the 20-intel.conf file allows to startx the nouveau driver correctly.
Something not working as expected?

User avatar
Adrian
Developer
Posts: 8230
Joined: Wed Jul 12, 2006 1:42 am

Re: [Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#7 Post by Adrian »

What mx-snapshot version do you have? Do you actually have that intel line in /etc/mx-snapshot-exclude.list? Is the file present on the resulting ISO (not when you boot, mount it manually BitJam's "isomount" script might make this easier: https://github.com/BitJam/isomount -- by the way I think for the next release we should include this script because it makes troubleshooting easier).

Friedrich
Posts: 102
Joined: Sun Dec 23, 2018 2:50 am

Re: [Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#8 Post by Friedrich »

Adrian wrote: Sun Apr 07, 2019 7:46 amWhat mx-snapshot version do you have?
19.4
Adrian wrote:Do you actually have that intel line in /etc/mx-snapshot-exclude.list?
Yes:
/etc/mx-snapshot-exclude.list:

Code: Select all

# This stops any video drivers from loading - safe option.
etc/X11/xorg.conf
etc/X11/xorg.conf.d/20-nvidia.conf
etc/X11/xorg.conf.d/20-intel.conf 
etc/X11/xorg.conf.d/20-radeon.conf
etc/X11/xorg.conf.d/20-amd.conf
Adrian wrote:Is the file present on the resulting ISO (not when you boot..
Yes. (7zip on windows handles the squashfs easily BTW)

User avatar
dolphin_oracle
Developer
Posts: 19831
Joined: Sun Dec 16, 2007 1:17 pm

Re: [Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#9 Post by dolphin_oracle »

I can confirm that 20-intel.conf is remaining on my snapshots as well.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: [Solved] MX-Snapshot not excluding specific folder/files mentioned in exclusion list

#10 Post by skidoo »

.
mksquashfs SOURCE [SOURCE2 ...] DESTINATION [OPTIONS]
.
https://github.com/MX-Linux/mx-snapshot ... w.cpp#L588

Code: Select all

cmd = "mksquashfs /.bind-root iso-template/antiX/linuxfs " + mksq_opt + \
            " -wildcards -ef " + snapshot_excludes.fileName() + " " + session_excludes;
As seen by mksquashfs, /.bind-root stands as the SOURCE but is "SOURCE" analagous with "top level directory"?
During the operation, is "/.bind-root/etc/X11/xorg.conf.d/20-intel.conf" the exact path (of the targeted exclusion item)
or should the pattern bear an ellipsis prefix in order to successfully match?
...etc/X11/xorg.conf.d/20-intel.conf
squashfs-tools...README-3.3
1.2 Non-anchored excludes

By default [the mksquashfs exclusion patterns] match from the top level directory,
but it is often useful to exclude a file matching anywhere in the source directories.
For this, non-anchored excludes can be used, specified by pre-fixing the exclude with "..."

Post Reply

Return to “Bugs and Non-Package Requests Forum”