[Bug 565557] New: autoyast=usb needs to check if device is already mounted
http://bugzilla.novell.com/show_bug.cgi?id=565557 http://bugzilla.novell.com/show_bug.cgi?id=565557#c0 Summary: autoyast=usb needs to check if device is already mounted Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: AutoYaST AssignedTo: ug@novell.com ReportedBy: ug@novell.com QAContact: qa@suse.de Found By: Customer Blocker: --- if you use autoyast=usb://.... and the device is already mounted like by the resolver, autoyast fails to read the profile from the usb device. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=565557 http://bugzilla.novell.com/show_bug.cgi?id=565557#c Uwe Gansert <ug@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |565558 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=565557 http://bugzilla.novell.com/show_bug.cgi?id=565557#c1 Uwe Gansert <ug@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Uwe Gansert <ug@novell.com> 2009-12-23 11:06:17 UTC --- fixed for 11.3 -- Configure bugmail: http://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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c9 --- Comment #9 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-08 12:38:36 UTC --- Created an attachment (id=533968) --> (http://bugzilla.novell.com/attachment.cgi?id=533968) y2start.log and y2log -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c10 Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |sebastian.herbszt@tfa.verwa | |lt-berlin.de Component|AutoYaST |AutoYaST Resolution|FIXED | AssignedTo|ug@suse.com |fehr@suse.com Product|openSUSE 11.2 |openSUSE 12.3 Target Milestone|--- |Final --- Comment #10 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-08 12:45:49 UTC --- This doesn't seem fixed for me neither on openSUSE 11.3 nor 12.3. SLES 11 SP2 is also affected. Profile and ISO are on the same usb device and the following is used: install=hd:/openSUSE-12.3-DVD-x86_64.iso autoyast=usb:///autoinst.xml YaST doesn't seem to notice the usb device is already mounted (by-id) and tries to mount it again as /dev/sdb1: 2013-04-08 08:13:24 <1> linux(2592) [YCP] ProfileLocation.ycp:46 Path to remote control file: /autoinst.xml 2013-04-08 08:13:24 <1> linux(2592) [YCP] ProfileLocation.ycp:109 File=autoinst.xml 2013-04-08 08:13:24 <1> linux(2592) [YCP] ProfileLocation.ycp:110 Get usb:////autoinst.xml to /tmp/YaST2-02592-ZuYZQx/autoinst.xml 2013-04-08 08:13:24 <1> linux(2592) [agent-system] SystemAgent.cc(Execute):1130 mkdir /tmp/YaST2-02592-OmPryX/tmp_mount 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:295 devices to look on: ["sdb", "sdb1"] 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:315 looking for profile on sdb 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:327 already mounted=false mountpoint=/tmp/YaST2-02592-OmPryX/tmp_mount 2013-04-08 08:13:34 <3> linux(2592) [bash] ShellCommand.cc(shellcommand):78 mount: /dev/sdb is already mounted or /tmp/YaST2-02592-OmPryX/tmp_mount busy 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:331 /dev/sdb is not mounted and mount failed 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:315 looking for profile on sdb1 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:327 already mounted=false mountpoint=/tmp/YaST2-02592-OmPryX/tmp_mount 2013-04-08 08:13:34 <3> linux(2592) [bash] ShellCommand.cc(shellcommand):78 mount: /dev/sdb1 is already mounted or /tmp/YaST2-02592-OmPryX/tmp_mount busy 2013-04-08 08:13:34 <1> linux(2592) [YCP] autoinstall/io.ycp:331 /dev/sdb1 is not mounted and mount failed 2013-04-08 08:13:34 <1> linux(2592) [ui] YPushButton.cc(setFunctionKey):188 Guessing button role YOKButton for YPushButton "OK" at 0x7fc2300c5be0 from function key F10 Logs are available in comment #9. On SLES 11 SP1 "install=cd autoyast=usb" used to work. I tried it as "install=hd:/openSUSE-12.3-DVD-x86_64.iso autoyast=usb" but it also failed: 2013-04-08 07:51:18 <1> linux(2583) [YCP] ProfileLocation.ycp:46 Path to remote control file: /autoinst.xml 2013-04-08 07:51:18 <1> linux(2583) [YCP] ProfileLocation.ycp:109 File=autoinst.xml 2013-04-08 07:51:18 <1> linux(2583) [YCP] ProfileLocation.ycp:110 Get floppy://usb//autoinst.xml to /tmp/YaST2-02583-BsixJI/autoinst.xml 2013-04-08 07:51:18 <1> linux(2583) [agent-system] SystemAgent.cc(Execute):1130 mkdir /tmp/YaST2-02583-zmQC13/tmp_mount 2013-04-08 07:51:18 <1> linux(2583) [YCP] StorageDevices.ycp:318 FloppyDrives [] 2013-04-08 07:51:18 <1> linux(2583) [ui] YPushButton.cc(setFunctionKey):188 Guessing button role YOKButton for YPushButton "OK" at 0x7ff9340c5be0 from function key F10 -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c11 --- Comment #11 from Thomas Fehr <fehr@suse.com> 2013-04-08 14:38:35 UTC --- Autoyast code looks through /proc/mounts to check if a device is already mounted. Older kernel had /dev/sdb1 in /proc/mounts in this case, it seems that newer kernels show also other names in /proc/mounts (in your case /dev/disk/by-id/usb-Verbatim_STORE_N_GO_00000000000006B3-0:0-part1) so far the code in autoyast does not match that with /dev/sdb1. Will add code that matches these names with traditional kernel names. -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c12 --- Comment #12 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-09 09:16:53 UTC --- On openSUSE 12.3 /proc/mounts has /dev/disk/by-id/usb-Verbatim_STORE_N_GO_00000000000006B3-0:0-part1 /mounts/mp_0001 ext2 ro,relatime 0 0 although "mount" reports /dev/sdb1 on /mounts/mp_0001 type ext2 (ro,relatime) The "namescheme=" parameter seems to work around this problem and autoyast finds the profile. /proc/mounts has /dev/sdb1 /mounts/mp_0001 ext2 ro,relatime 0 0 which matches the output of "mount" /dev/sdb1 on /mounts/mp_0001 type ext2 (ro,relatime) -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c13 --- Comment #13 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-09 14:17:01 UTC --- On openSUSE 11.3 /proc/mounts also includes the 'by-id' device: /dev/disk/by-id/usb-Verbatim_STORE_N_GO_00000000000006B3-0:0-part1 /mount /mp_0001 ext2 ro,relatime,errors=continue 0 0 Uwe, can you please explain under which circumstances you fixed the problem in 11.3? -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c14 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #14 from Thomas Fehr <fehr@suse.com> 2013-04-15 15:46:22 UTC --- Uwe is not available any more, there seem to be cases where kernel name (/dev/sd...) is present in /proc/mounts (here Uwe´s fix is ok) and other cases where udev names (/dev/disk/by-id/...) are present in /proc/mounts. I fixed and tested this now in git head and will backport fix to 12.3 and SLES11 SP3. -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-04-16 13:00:09 CEST --- This is an autogenerated message for OBS integration: This bug (565557) was mentioned in https://build.opensuse.org/request/show/171057 Maintenance / -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c17 --- Comment #17 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-22 12:33:24 UTC --- I can confirm the problem is fixed after applying "recognize mounted device also when by-id names are used in /proc/mounts (bnc#565557)" (Code-11-SP3) on top of SLES 11 SP2. -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c18 --- Comment #18 from Sebastian Herbszt <sebastian.herbszt@tfa.verwalt-berlin.de> 2013-04-22 12:34:50 UTC --- Created an attachment (id=536267) --> (http://bugzilla.novell.com/attachment.cgi?id=536267) y2log-fixed.txt -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c19 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #19 from Thomas Fehr <fehr@suse.com> 2013-04-22 12:38:09 UTC --- Thanks for verification. Closing. -- 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=565557 https://bugzilla.novell.com/show_bug.cgi?id=565557#c20 --- Comment #20 from Swamp Workflow Management <swamp@suse.de> 2013-06-10 10:29:50 UTC --- openSUSE-RU-2013:0987-1: An update that has three recommended fixes can now be installed. Category: recommended (low) Bug References: 565557,803577,811688 CVE References: Sources used: openSUSE 12.3 (src): autoyast2-2.23.6-1.4.1 -- 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