[Bug 728314] New: YaST can't check size of already existing crypto device on installation
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c0 Summary: YaST can't check size of already existing crypto device on installation Classification: openSUSE Product: openSUSE 12.1 Version: RC 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dkukawka@suse.com QAContact: jsrain@suse.com Found By: --- Blocker: --- Created an attachment (id=460487) --> (http://bugzilla.novell.com/attachment.cgi?id=460487) screenshot of install summary dialog In the installation summary dialog YaST complains it isn't able to check/detect the size of a already existing crypto device (don't format the device, only mount it). This is strange since: a) the affected device isn't even needed for installation (/local in this case) b) the YaST partitioner asked for the password of the partition, which I entered. It shouldn't be that hard to use the password to mount the device and check the size if really needed. I attach a screenshot -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c1 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | --- Comment #1 from Andreas Jaeger <aj@suse.com> 2011-11-04 14:16:27 UTC --- Could you add the yast2 log files, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c2 --- Comment #2 from Danny Kukawka <dkukawka@suse.com> 2011-11-04 14:20:11 UTC --- see http://bugzilla.novell.com/attachment.cgi?id=460491 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c3 Martin Vidner <mvidner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fehr@suse.com AssignedTo|yast2-maintainers@suse.de |lslezak@suse.com --- Comment #3 from Martin Vidner <mvidner@suse.com> 2011-11-09 17:40:52 CET --- package bindings or storage, let's try the former first -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c4 Ladislav Slezak <lslezak@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO InfoProvider| |fehr@suse.com --- Comment #4 from Ladislav Slezak <lslezak@suse.com> 2011-11-15 13:39:24 UTC --- The problem is in SpaceCalculation.ycp: 2011-11-04 13:25:48 <1> e123.suse.de(3358) [YCP] SpaceCalculation.ycp:587 Adding partition: $["crypt_device":"/dev/mapper/cr_sda6", "detected_fs":`ext4, "device":"/dev/sda6", "enc_type":`luks , "fsid":131, "fstype":"Linux native", "inactive":true, "mount":"/local", "mountby":`id, "name":"sda6", "nr":6, "region":[7361, 83840], "size_k":673436672, "type":`logical, "udev_id":["ata-WD C_WD7500BPKT-60PK4T0_WD-WX31E1176283-part6", "scsi-SATA_WDC_WD7500BPKT-_WD-WX31E1176283-part6", "wwn-0x50014ee2b05d5049-part6"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0-part6", "used_fs":` ext4, "uuid":"894a837f-56bb-48ff-a80e-5906e18adea2"] 2011-11-04 13:25:48 <1> e123.suse.de(3358) [YCP] SpaceCalculation.ycp:645 Executing mount command: /bin/mount -o ro /dev/sda6 /tmp/YaST2-03358-mW16jb/diskspace_mount 2011-11-04 13:25:48 <3> e123.suse.de(3358) [bash] ShellCommand.cc(shellcommand):78 mount: unknown filesystem type 'crypto_LUKS' 2011-11-04 13:25:48 <1> e123.suse.de(3358) [YCP] SpaceCalculation.ycp:648 Mount result: 32 2011-11-04 13:25:48 <3> e123.suse.de(3358) [YCP] SpaceCalculation.ycp:669 Mount failed, ignoring partition /dev/sda6 It simply doesn't know that the partition is encrypted and uses plain mount call which obviously fails. The yast storage module must already have some LUKS mounting code. Thomas how can I mount an encrypted partition to see how much free space there is? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c5 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fehr@suse.com | --- Comment #5 from Thomas Fehr <fehr@suse.com> 2011-11-15 14:09:12 UTC --- There is a function Storage::Mount( string device, string mountpoint ) which you could use. It automatically sets up encryption if needed. There is also a Storage::Umount( string device ) which un-mounts again and also removed dm devices used for crypto if needed. It expects a valid filesystem and encryption setup and it needs that the user has provided crypto passwords already, but this should be the case here. Another question is why to check for space in directories that RPM is not allowed to have files according to FHS at all. Why not only check for "/", "/boot/*", "/usr/*", "/opt/*" and "/var/*" AFAIK our RPMS should not contain files outside of the above. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728314 https://bugzilla.novell.com/show_bug.cgi?id=728314#c6 Ladislav Slezak <lslezak@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #6 from Ladislav Slezak <lslezak@suse.com> 2011-11-15 14:42:55 UTC --- Thomas, thanks for the info. I'd rather leave the check also non-FHS directories because there might be 3rd party packages (included in an 3rd party add-on installation media) which do not conform to FHS. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com