[Bug 1225348] New: [Agama][Milestone8+] Storage proposal allows adding swap partition for Micro OS (after switching from TW to MicroOS)
https://bugzilla.suse.com/show_bug.cgi?id=1225348 Bug ID: 1225348 Summary: [Agama][Milestone8+] Storage proposal allows adding swap partition for Micro OS (after switching from TW to MicroOS) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: locilka@suse.com QA Contact: jsrain@suse.com Target Milestone: --- Found By: --- Blocker: --- Created attachment 875128 --> https://bugzilla.suse.com/attachment.cgi?id=875128&action=edit Screenshot: Adding swap allowed for MicroOS This is about Agama - the not-yet-official installer. The MicroOS product should not allow adding swap as an additional partition, which is does not be default, but when you first select Tumbleweed (and do some partitioning - not confirmed) and then you got to the Product selection and select MicroOS, later Partitioning proposal allows adding swap. This looks like some problem with caching. Especially as although it let's you add the swap partition, but the default filesystem is Ext4 and size is Range from 0 KiB to 0 KiB, which really does not sound like good defaults for swap. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c1 --- Comment #1 from Lukas Ocilka <locilka@suse.com> --- Created attachment 875129 --> https://bugzilla.suse.com/attachment.cgi?id=875129&action=edit YaST logs -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c2 --- Comment #2 from Lukas Ocilka <locilka@suse.com> --- Created attachment 875130 --> https://bugzilla.suse.com/attachment.cgi?id=875130&action=edit Screenshot: Adding swap - the defaults -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c3 --- Comment #3 from Stefan Hundhammer <shundhammer@suse.com> --- I just tried on TW with YaST, and the behavior there is very similar: - It lets me add a new partition as "Data or ISV application", and I can select filesystem type "swap" with mount point /tmp.
balrog-tw-dev:~ # egrep '\s/tmp' /etc/fstab UUID=4850e012-495e-40d3-8b62-ea57e633717d /tmp swap defaults 0 0
balrog-tw-dev:~ # swapon NAME TYPE SIZE USED PRIO /dev/sda3 partition 2G 0B -2 /dev/sdb1 partition 299M 0B -3
(It's that 300 MiB /dev/sdb1 partition) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c4 --- Comment #4 from Stefan Hundhammer <shundhammer@suse.com> --- It also lets me create a 300 MiB swap partition with mount point /foo.
balrog-tw-dev:~ # swapon NAME TYPE SIZE USED PRIO /dev/sda3 partition 2G 0B -2 /dev/sdb1 partition 299M 0B -3
balrog-tw-dev:~ # egrep '\s/foo' /etc/fstab UUID=ae2bd017-681f-44d0-b0f0-1ff1eebf6c43 /foo swap defaults 0 0
balrog-tw-dev:~ # df /foo df: /foo: No such file or directory
balrog-tw-dev:~ # grep foo /proc/partitions balrog-tw-dev:~ # -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c5 --- Comment #5 from Stefan Hundhammer <shundhammer@suse.com> --- It looks like with enough "criminal energy" you can cheat the partitioner into invalid setups, YaST as well as Agama. But then, we do warn the user that the partitioner should only be used by users who know what they are doing. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c6 --- Comment #6 from Stefan Hundhammer <shundhammer@suse.com> --- It also lets me create an XFS with mount point 'swap'. That only fails because it would need 300 MiB to create an XFS filesystem, and I have slightly less than that; it doesn't warn me about it in advance. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c7 --- Comment #7 from Stefan Hundhammer <shundhammer@suse.com> --- We have several layers of sanity checks in the partitioners, both in Agama and in YaST: - On the partitioner UI / storage-ng level - On the libstorage-ng level - When executing the filesystem tools that perform the change On the running system, this isn't so bad: You get an error, and you go back and try again. During installation, however, this may cause the entire installation to fail. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aschnell@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c8 --- Comment #8 from Arvin Schnell <aschnell@suse.com> --- See bug #1161076: expert partitioner allows mount point "swap" for ext4 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c9 José Iván López González <jlopez@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |jlopez@suse.com --- Comment #9 from José Iván López González <jlopez@suse.com> --- The list of product mount points was read too early, see https://github.com/openSUSE/agama/pull/1264. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225348 https://bugzilla.suse.com/show_bug.cgi?id=1225348#c10 Lukas Ocilka <locilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #10 from Lukas Ocilka <locilka@suse.com> --- Ivan, your fix works as expected. I can now only add / or /var Thx :) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com