-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Boryeu Mao: > On Tue, Oct 15, 2024 at 3:59 AM Rusty Bird <rustyb...@net-c.com> wrote: > > Boryeu Mao: > > > For the template install command on Qubes release 4.2.3 > > > > > > sudo qubes-dom0-update qubes-template-fedora-40-minimal > > > > > > I received a message that > > > > > > fstrim: /var/tmp/tmpsd1ns61v/var/lib/qubes/vm-template: the discard > > > operation is not supported > > > > Did you maybe mount a tmpfs at /var/tmp?
> [...] no manual tmpfs mount. I assume you're seeing the same "not supported" message if you run: $ sudo fstrim /var/tmp/ The only thing I can think of is that you have custom partitioning, and the storage layer immediately underneath the filesystem hosting /var/tmp/ is dm-crypt (unusual for an LVM Thin installation), and dm-crypt has been mapped with discard disabled. Your storage tree (showing discard support) can be printed with: $ lsblk --output +DISC-MAX > > https://github.com/QubesOS/qubes-core-admin-client/commit/4a9b57f91fdf3a2b35a5cf707970d05bf9cadba7 > In the qvm_template_postprocess.py (which the above link points to), fstrim > is called only if the root user does the template install. To me this looks like something that was missed in the move to qvm-template: Previously, qubes-dom0-update (which had to be run as root) would install templates as normal RPM packages. I guess the logic to skip fstrim for non-root users might have been put there to ease testing the qvm-template-postprocess tool? CCing Marek Then qvm-template was created (which like other qvm- tools usually runs as a regular user) and now fstrim is skipped unless someone happens to invoke qvm-template as root. Skipping seems like a bug, but on R4.2 systems it's mitigated by the installer adding the 'discard' mount option for the dom0 root filesystem, making fstrim redundant. Except for people who installed via qubes-dist-upgrade or removed the mount option. For those, there's still the systemd fstrim.timer that should release the space to LVM, hopefully soon enough (weekly). Finally, you've used qubes-dom0-update, which nowadays calls qvm-template for template related stuff. For this, qubes-dom0-update can actually be run as non-root, but you ran it with sudo, so fstrim was *not* skipped. (Which then failed on on your system.) > Thank you very much for helping. Happy to. It's interesting :) Rusty -----BEGIN PGP SIGNATURE----- iQKTBAEBCAB9FiEEhLWbz8YrEp/hsG0ERp149HqvKt8FAmcP1btfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDg0 QjU5QkNGQzYyQjEyOUZFMUIwNkQwNDQ2OUQ3OEY0N0FBRjJBREYACgkQRp149Hqv Kt/L3xAAjs5MdAVStMB33Dzahh6/oinggSp5fT4f+FFLSb3gKPrzLApi3OxKNnIp 0AX/lGjFftbRcVCrwvFV5vZxMp3wAAKn68htEmvqZ3QA0hSr3aHrnu0gnVCnyGUG f0KEFmv1pluSB4Af0s5euJOq5Rocd2HxnfNNIDG+8rOZ6KRLBVpaQXzRP4ejTAsS H8XVCeB182n7RveSheyrXXr+Z980WM/xz7Qg88Wsmgi47fkulJ4ZbI2GI4z9MVHl q76pVvdKxotMCtNad3ii/tbJCGDHxacRsQhDPE36a6x+Mvgq/OlMJqbJWIBaD7VP Pxzj33Nspy8CFf585w6l3INCHz+qV9YV6/Hb674HyGHsn4O/nHF+IecdqZb19O8P XjsFK3FrW1kqxj3/5nMurZ6NrlWC2qFqCQcr9ALCodJQDFHfdComnnFu25krDmBd vl/nSEwcLpMtrtl4AUrekbHTrlDDW/096+FJlE+TNmYbD7YEK7qBxipulGwCg6Jf NBL47gbIAYISKY1L+YDY7jGhEYMMaUZy8T5P4uTHQ4Zhqa5oXRts4dtkuuvuWmBS wDfKzSGrmr694C1HnSGuTWP/a5psi5YhrGcHWILct2Ix6oUn5Q80rMbttjNnpmWT DgLjPdlAXrDvQErn09TLE/YJ4BW5ORcZSfeNBboff1AUKfRqvG4= =+Iy5 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/Zw_Vuw1gVARa8DtR%40mutt.