[Bug 1104588] New: unable to configure /tmp using tmpfs
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 Bug ID: 1104588 Summary: unable to configure /tmp using tmpfs Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: jcdole@free.fr QA Contact: jsrain@suse.com Found By: --- Blocker: --- Up to Leap 42.3 you have the possibility to have "/tmp" using "tmpfs". In the partitioner you have the option to add partition using tmpfs : see http://paste.opensuse.org/87010584 This options is also indicated in : http://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.refe... This is missing on leap 15.0 Any comment is welcome. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c2 --- Comment #2 from Jean-Claude Dole <jcdole@free.fr> --- Hello. The problem is in that case, is that a tmp folder is created during install and you cannot create another tmp folder using tmpfs. So you need to boot on an usb stick, remove the folder /tmp, reboot, and make the new /tmp folder using tmpfs. Perhaps you have a better way to do that. Any comments is welcome -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c3 --- Comment #3 from Jean-Claude Dole <jcdole@free.fr> ---
As such, managing tmpfs in the Partitioner makes no sense anymore and that's why >it was decided to leave the feature intentionally out during the recent rewrite >of the Partitioner internals.
So you must give a way to install /tmp in tmpfs somewhere in the menu installer if you think that the partitioner is not the good place. The need still exists. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 Jean-Claude Dole <jcdole@free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Documentation |Installation Assignee|fs@suse.com |yast2-maintainers@suse.de QA Contact|fs@suse.com |jsrain@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c6 --- Comment #6 from Jean-Claude Dole <jcdole@free.fr> --- (In reply to Josef Reidinger from comment #4)
(In reply to Jean-Claude Dole from comment #2)
Hello. The problem is in that case, is that a tmp folder is created during install and you cannot create another tmp folder using tmpfs. So you need to boot on an usb stick, remove the folder /tmp, reboot, and make the new /tmp folder using tmpfs.
Perhaps you have a better way to do that.
Any comments is welcome
I do not think it is needed. Just change default configuration of /usr/lib/tmpfiles.d/tmp.conf in /etc/tmpfiles.d like not using "q" and instead use e.g. d. So please see man tmpfiles.d(5), this gives a lot of flexibility. I agree that yast2-storage-ng does not allow to modify it now from GUI. So do you think it should be in that GUI?
The problem is not reading man tmpfiles.d(5), the problem is when install is finished, you got a folder in root file system ( /tmp ) and this folder is busy and you must boot on separate system to remove /tmp, and configure tmpfiles. Isn't it Unless you can do all these changes directly on a running system ? ? ?. In that case tell me. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c7 --- Comment #7 from Jean-Claude Dole <jcdole@free.fr> --- (In reply to Ancor Gonzalez Sosa from comment #5)
(In reply to Josef Reidinger from comment #4)
I do not think it is needed. Just change default configuration of /usr/lib/tmpfiles.d/tmp.conf in /etc/tmpfiles.d like not using "q" and instead use e.g. d. So please see man tmpfiles.d(5), this gives a lot of flexibility. I agree that yast2-storage-ng does not allow to modify it now from GUI. So do you think it should be in that GUI?
I don't think that a GUI in the installer to modify the configuration of systemd-tmpfiles makes much sense. Unless we get other use case for it.
At least, I don't foresee it becoming a priority for the YaST Team taking into account the current amount of open topics. So reassigning this to YaST community just in case someone wants to contribute such feature
You can simplify the installer : remove firewall question remove ssh question remove the software management options just keep the keyboard question, the time-date question, the partitionner and install a minimal system. Good idea, less work. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c8 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno@ioda-net.ch Flags|needinfo?(jcdole@free.fr) | --- Comment #8 from Bruno Friedmann <bruno@ioda-net.ch> --- Some complement on default Leap 15.0 /tmp is not a tmpfs file a subvolume @/tmp is created and the mount is done there. Now to have what the administrator think it is better for its own usage the tmpfs module in the partitionner can as before add a line in fstab, or create the desired configuration file automatically by surcharging the default For example /etc/systemd/system/tmp.mount.d/options.conf [Mount] What=tmpfs Where=/tmp Type=tmpfs Options=mode=1777,strictatime,nosuid,nodev,size=2G reference https://unix.stackexchange.com/questions/352042/systemd-backed-tmpfs-how-to-... With this kind of behavior, is the most sensible world. be really systemd aware system, and offer tuning (as we always being strong) to sysadmin. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c9 --- Comment #9 from Jean-Claude Dole <jcdole@free.fr> --- (In reply to Ancor Gonzalez Sosa from comment #5)
(In reply to Josef Reidinger from comment #4)
I do not think it is needed. Just change default configuration of /usr/lib/tmpfiles.d/tmp.conf in /etc/tmpfiles.d like not using "q" and instead use e.g. d. So please see man tmpfiles.d(5), this gives a lot of flexibility. I agree that yast2-storage-ng does not allow to modify it now from GUI. So do you think it should be in that GUI?
I don't think that a GUI in the installer to modify the configuration of systemd-tmpfiles makes much sense. Unless we get other use case for it.
At least, I don't foresee it becoming a priority for the YaST Team taking into account the current amount of open topics. So reassigning this to YaST community just in case someone wants to contribute such feature.
After reading tmpfiles.d(5) I have not found any directions to configure "/tmp" as configured from "/etc/fstab" --> 'tmpfs /tmp tmpfs defaults' to something equivalent in "/etc/tmpfiles.d/tmp.conf". In particular what is the equivalent of "defaults" for systemd tmp.conf ? After creating "/etc/tmpfiles.d/tmp.conf" without the line "q /tmp 1777 root root -" does it remove the "/tmp" folder on next reboot ? If yes, it seems to be sufficient to modify "/etc/fstab" before reboot ? If not, does it permit after reboot to delete the "/tmp" folder ? If yes, after reboot and deleting the "/tmp" folder it seems to be sufficient to modify "/etc/fstab" before the second reboot ? If not ........... ........... It is not so simple if your are not a guru. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c10 --- Comment #10 from Jean-Claude Dole <jcdole@free.fr> --- After reading paper on internet it seems that now opensuse install /tmp in tmpfs by default. Is it right ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1104588 http://bugzilla.opensuse.org/show_bug.cgi?id=1104588#c11 Dario Tislar <dario.tislar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dario.tislar@gmail.com --- Comment #11 from Dario Tislar <dario.tislar@gmail.com> --- /tmp is still mounted as root subvolume. Here are instructions how to change that: https://en.opensuse.org/SDB:SSD_performance -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com