[Bug 774560] New: Yast2-Boot Loader freezes at 100 percent when saving changes
https://bugzilla.novell.com/show_bug.cgi?id=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c0 Summary: Yast2-Boot Loader freezes at 100 percent when saving changes Classification: openSUSE Product: openSUSE 12.2 Version: RC 2 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rb03884@gmail.com QAContact: jsrain@suse.com Found By: Beta-Customer Blocker: --- Created an attachment (id=501152) --> (http://bugzilla.novell.com/attachment.cgi?id=501152) Saving Yast2-Boot Loader changes freeze up Every time I save changes with Yast2-Boot Loader it freezes at 100 percent. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c1 Michal Filka <mfilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mfilka@suse.com AssignedTo|yast2-maintainers@suse.de |snwint@suse.com --- Comment #1 from Michal Filka <mfilka@suse.com> 2012-08-08 07:44:50 UTC --- Please, attach logs as described in http://en.opensuse.org/openSUSE:Bugreport_YaST. If you could describe what exactly you try to configure, it would be more helpful too. Thank you. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c2 --- Comment #2 from Roman Bysh <rb03884@gmail.com> 2012-08-08 19:04:03 UTC --- Created an attachment (id=501680) --> (http://bugzilla.novell.com/attachment.cgi?id=501680) y2logs with yast2-boot loader freeze up I've renamed the y2logs.tgz file due to the many bug submissions today. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c3 --- Comment #3 from Roman Bysh <rb03884@gmail.com> 2012-08-08 19:06:14 UTC --- I clicked on the Yast2-Boot Loader and edit the kernel option line by removing pcie_aspm=force parameter and click on the OK button. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c4 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |snwint@suse.com AssignedTo|snwint@suse.com |mchang@suse.com --- Comment #4 from Steffen Winterfeldt <snwint@suse.com> 2012-08-09 10:41:39 CEST --- There's a bit of a problem with the grub2 setup. If I read the logs correctly it tries to install it into sda4 which is not a good idea as that's the extended partition. There are lots of evil error messages in perl-BL-standalone-log after that. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c5 --- Comment #5 from Michael Chang <mchang@suse.com> 2012-08-09 09:04:29 UTC --- The log is the problem. :( : out of memory. error: syntax error. error: Incorrect command. error: syntax error. Syntax error at line 56 Syntax errors are detected in generated GRUB config file. Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub2/grub.cfg.new file attached.done -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c6 --- Comment #6 from Michael Chang <mchang@suse.com> 2012-08-09 09:12:46 UTC --- Roman, Could you please try : $ grub2-script-check /boot/grub2/grub.cfg.new I wonder this script would block for a log while. And it seems to me grub.cfg is broken, and the error at line 56 is generated by /etc/grub.d/00_header script. And please attach /boot/grub2/grub.cfg.new and all scripts in/etc/grub.d/? Thanks. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c7 --- Comment #7 from Roman Bysh <rb03884@gmail.com> 2012-08-09 15:46:47 UTC --- Created an attachment (id=501825) --> (http://bugzilla.novell.com/attachment.cgi?id=501825) grub.cfg.new and all scripts from /etc/grub.d As per your request. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c8 --- Comment #8 from Roman Bysh <rb03884@gmail.com> 2012-08-09 15:48:26 UTC --- Update I've uploaded the files. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c9 --- Comment #9 from Michael Chang <mchang@suse.com> 2012-08-10 05:04:45 UTC --- Roman. You config and scripts looks fine, probably are victims of out of memory. No idea, Maybe I should try to collect info on how much memory yast2 bootloader consumes in the process. Btw is invoking grub2-mkconfig from command line without problem? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c10 --- Comment #10 from Michael Chang <mchang@suse.com> 2012-08-10 06:26:59 UTC --- I think the freezing is due to grub2-mkconfig or one of it's utilities looping somewhere until all memories are eaten. It would be great if you could help to check grub2-mkconfig with "set -x" at beginning and use $ tail -f /var/log/YaST2/y2log_bootloader and run yast2 bootloader to check where in the script is blocking or looping, we could then take a look on that them. Thanks. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c11 --- Comment #11 from Roman Bysh <rb03884@gmail.com> 2012-08-10 14:44:55 UTC --- Michael, I believe grub-mkconfig takes too long too complete and they are tied together. I've clocked to several minutes. I have submitted a bug report for it also: https://bugzilla.novell.com/show_bug.cgi?id=774724 BTW Nobody has responded to it. Can you please provide the full command with set -x and with grub2-mkconfig? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c12 --- Comment #12 from Roman Bysh <rb03884@gmail.com> 2012-08-10 23:41:24 UTC --- Created an attachment (id=502035) --> (http://bugzilla.novell.com/attachment.cgi?id=502035) Updated y2log Reviewing the y2log will show that I started and killed the yast2-bootloader twice. The first started up just after typing in the konsole. The second started up after the word "done" appeared. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c13 --- Comment #13 from Roman Bysh <rb03884@gmail.com> 2012-08-10 23:42:15 UTC --- Created an attachment (id=502036) --> (http://bugzilla.novell.com/attachment.cgi?id=502036) The y2log.bootloader file -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c14 --- Comment #14 from Roman Bysh <rb03884@gmail.com> 2012-08-12 16:45:06 UTC --- After running the commands it appears that the Yast2-Boot Loader takes "several minutes" to complete. Most likely the same time it takes to run: grub2-mkconfig -o /boot/grub2/grub.cfg -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c15 --- Comment #15 from Roman Bysh <rb03884@gmail.com> 2012-08-12 16:47:18 UTC --- Created an attachment (id=502069) --> (http://bugzilla.novell.com/attachment.cgi?id=502069) The bash -x /usr/sbin/grub2-mkconfig results I have copied the text to a file from my konsole. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c16 --- Comment #16 from Roman Bysh <rb03884@gmail.com> 2012-08-12 16:59:43 UTC --- Michael check my latest y2log and open it in kwrite. Look for the line: 2012-08-10 19:12:14 <1> CPE00221595340e-CM000e5cdd65d4(2029) [Pkg] Package.cc(searchPackage):575 Package 'kernel-desktop' installed: true 2012-08-10 19:12:14 <1> CPE00221595340e-CM000e5cdd65d4(2029) [Pkg] BootCommon.ycp:462 Pkg Builtin called: PkgGetFilelist 2012-08-10 19:12:14 <1> CPE00221595340e-CM000e5cdd65d4(2029) [YCP] BootCommon.ycp:463 kernel package kernel-desktop has these files: It is listing hundreds of files. Bug? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c17 --- Comment #17 from Roman Bysh <rb03884@gmail.com> 2012-08-12 17:04:59 UTC --- Created an attachment (id=502070) --> (http://bugzilla.novell.com/attachment.cgi?id=502070) Latest y2logs from Aug. 12, 2012 Open in kwrite. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c18 --- Comment #18 from Roman Bysh <rb03884@gmail.com> 2012-08-12 17:13:53 UTC --- Copied from my konsole. Should it not go back to the prompt after it is done? I had to use CNTRL+Z to stop it. tail -f /var/log/YaST2/y2log_bootloader Generating grub.cfg ... tail: /var/log/YaST2/y2log_bootloader: file truncated Generating grub.cfg ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-3.4.6-1.1-desktop Found initrd image: /boot/initrd-3.4.6-1.1-desktop No volume groups found Found openSUSE 12.1 (x86_64) on /dev/sda1 done ^Z [1]+ Stopped tail -f /var/log/YaST2/y2log_bootloader -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c19 --- Comment #19 from Michael Chang <mchang@suse.com> 2012-08-13 02:51:02 UTC --- (In reply to comment #16)
It is listing hundreds of files. Bug?
It's not a bug, afaics. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c20 --- Comment #20 from Michael Chang <mchang@suse.com> 2012-08-13 03:14:58 UTC --- (In reply to comment #18)
Copied from my konsole. Should it not go back to the prompt after it is done? I had to use CNTRL+Z to stop it.
tail -f /var/log/YaST2/y2log_bootloader Generating grub.cfg ... tail: /var/log/YaST2/y2log_bootloader: file truncated Generating grub.cfg ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-3.4.6-1.1-desktop Found initrd image: /boot/initrd-3.4.6-1.1-desktop No volume groups found Found openSUSE 12.1 (x86_64) on /dev/sda1 done
^Z [1]+ Stopped tail -f /var/log/YaST2/y2log_bootloader
CNTRL+Z puts the process to background and suspend it. (In case that it holds file lock or any unreleased resource, which is unwanted side-effect to new running process) If you want a clean termination, use CTRL+C is better way to go. :) The 'trace' (set -x) is not enable in the script, you could try this command $ sed -i '1s/$/ -x/' /usr/sbin/grub2-mkconfig That is set your #! /bin/sh to #! /bin/sh -x And see where the execution blocks (in a command or in a loop). Thanks. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c21 --- Comment #21 from Roman Bysh <rb03884@gmail.com> 2012-08-13 15:49:17 UTC --- Created an attachment (id=502151) --> (http://bugzilla.novell.com/attachment.cgi?id=502151) Latest-bash-x -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c22 --- Comment #22 from Roman Bysh <rb03884@gmail.com> 2012-08-13 16:54:38 UTC --- Why is Grub2 running insmod ext2 when my fs is ext4? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c23 --- Comment #23 from Roman Bysh <rb03884@gmail.com> 2012-08-13 17:39:34 UTC --- Okay GRUB_FS=ext2 Is this for /boot partitions? While watching 00_header, this block takes some time to complete: terminal_output gfxterm Found theme: /boot/grub2/themes/openSUSE/theme.txt insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7' 751f53d6-564b-4025-8d22-c72c8baf632b else search --no-floppy --fs-uuid --set=root 751f53d6-564b-4025-8d22-c72c8baf632b fi insmod gfxmenu loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2 insmod png set theme=($root)/boot/grub2/themes/openSUSE/theme.txt export theme if sleep --interruptible 0 ; then set timeout=4 fi -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c24 --- Comment #24 from Roman Bysh <rb03884@gmail.com> 2012-08-13 17:48:00 UTC --- Is it possible to add a timer command to bash -x /usr/sbin/grub2-mkconfig ? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c25 --- Comment #25 from Michael Chang <mchang@suse.com> 2012-08-15 06:03:13 UTC --- Try follow this link's method and works for me. http://stackoverflow.com/questions/5014823/how-to-profile-a-bash-shell-scrip... Add this line in beginning of grub2-mkconfig PS4='+ $(date "+%s.%N")\011 ' Hopefully we could find where the called utility blocks the execution. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c26 --- Comment #26 from Michael Chang <mchang@suse.com> 2012-08-15 08:29:49 UTC --- Roman, Could you measure how much time takes when you run os-prober ? Thanks. $ time os-prober -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c27 --- Comment #27 from Roman Bysh <rb03884@gmail.com> 2012-08-15 16:19:06 UTC --- I'm getting an error < /bin/sh: - : invalid option >. Shouldn't it be added to .bash.rc? See below: PS4='+ $(date "+%s.%N")\011 ' grub2-mkconfig /bin/sh: - : invalid option Usage: /bin/sh [GNU long option] [option] ... /bin/sh [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --protected --rcfile --restricted --verbose --version Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c28 --- Comment #28 from Roman Bysh <rb03884@gmail.com> 2012-08-15 20:12:07 UTC --- Ran time os-prober. time os-prober No volume groups found /dev/sda1:openSUSE 12.1 (x86_64):SUSE:linux real 0m0.881s user 0m0.147s sys 0m0.250s -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c Roman Bysh <rb03884@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |Final -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c29 --- Comment #29 from Michael Chang <mchang@suse.com> 2012-08-17 02:17:30 UTC --- Weird. I have no problem .. linux-j110:/home/linux # PS4='+ $(date "+%s.%N")\011 ' grub2-mkconfig + 1345169792.305470110 set -e + 1345169792.308699699 transform='s&^&&;s,grub,grub2,' + 1345169792.311512295 prefix=/usr + 1345169792.313946809 exec_prefix=/usr + 1345169792.315383451 datarootdir=/usr/share + 1345169792.317293514 prefix=/usr + 1345169792.318813405 exec_prefix=/usr + 1345169792.320451074 sbindir=/usr/sbin + 1345169792.321959332 bindir=/usr/bin + 1345169792.323602715 sysconfdir=/etc + 1345169792.324904895 PACKAGE_NAME=GRUB2 + 1345169792.326645280 PACKAGE_VERSION=2.00 + 1345169792.328454865 host_os=linux-gnu + 1345169792.329824758 datadir=/usr/share + 1345169792.331182761 '[' x = x ']' + 1345169792.332521403 pkgdatadir=/usr/share/grub2 + 1345169792.333875663 grub_cfg= + 1345169792.335210226 grub_mkconfig_dir=/etc/grub.d ++ 1345169792.336823830 basename /usr/sbin/grub2-mkconfig + 1345169792.338892325 self=grub2-mkconfig ++ 1345169792.340638528 echo grub-probe ++ 1345169792.340679841 sed 's&^&&;s,grub,grub2,' -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c30 --- Comment #30 from Michael Chang <mchang@suse.com> 2012-08-17 02:25:04 UTC --- Roman, There's a similar bug report said that /etc/grub.d/30_os-prober took too much time. I'm not sure your case is different or not. Please try to disable /etc/grub.d/30_os-prober from running by setting GRUB_DISABLE_OS_PROBER=true in /etc/default/grub and run grub2-mkconfig to check? Thanks. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c31 --- Comment #31 from Roman Bysh <rb03884@gmail.com> 2012-08-24 21:31:11 UTC --- Sorry for the delay. My workstation was down for cleaning, new hard drive and BIOS updating. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c32 --- Comment #32 from Roman Bysh <rb03884@gmail.com> 2012-08-24 21:37:14 UTC --- Created an attachment (id=503487) --> (http://bugzilla.novell.com/attachment.cgi?id=503487) latest bash -x grub2-mkconfig file -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c33 --- Comment #33 from Roman Bysh <rb03884@gmail.com> 2012-08-24 21:38:20 UTC --- Looks like 10_header is running rather slow. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c34 --- Comment #34 from Roman Bysh <rb03884@gmail.com> 2012-08-24 21:42:32 UTC --- Correction The script 00_header is running slow. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c35 --- Comment #35 from Michael Chang <mchang@suse.com> 2012-09-11 04:24:59 UTC --- *** Bug 774724 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=774724 -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c36 --- Comment #36 from Michael Chang <mchang@suse.com> 2012-09-11 04:35:20 UTC --- Roman, Thanks to narrow down. However I'm still feeling like finding a needle. :/ We do need the result of tracing the execution with timestamp. I will give you the patch and please help to collect the log. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c37 --- Comment #37 from Michael Chang <mchang@suse.com> 2012-09-11 05:07:46 UTC --- Created an attachment (id=505135) --> (http://bugzilla.novell.com/attachment.cgi?id=505135) 00_header.diff 1. To apply the patch $ cd /etc/grub.d $ patch -p0 < 00_header.diff 2. To collect the log $ grub2-mkconfig 2> grub2-mkcofing-strace.log And attach this grub2-mkcofing-strace.log Thank. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c38 --- Comment #38 from Roman Bysh <rb03884@gmail.com> 2012-09-11 18:34:42 UTC --- Michael I'm getting an error: patch -p0 < 00_header.diff patching file 00_header patch unexpectedly ends in middle of line Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file 00_header.rej The 00_header.rej is: -- 00_header 2012-09-11 12:52:15.202909249 +0800 +++ 00_header.new 2012-09-11 12:59:21.765576480 +0800 @@ -1,4 +1,7 @@ #! /bin/sh +set -x +PS4='+ $(date "+%s.%N")\011' + set -e # grub-mkconfig helper script. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c39 --- Comment #39 from Roman Bysh <rb03884@gmail.com> 2012-09-11 18:49:42 UTC --- Okay. I just fixed the file. The log is coming very soon. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c40 --- Comment #40 from Roman Bysh <rb03884@gmail.com> 2012-09-11 19:14:33 UTC --- Created an attachment (id=505289) --> (http://bugzilla.novell.com/attachment.cgi?id=505289) Latest grub2-mkcofig-strace.log Michael As per request. I've attached the timed 00_header log file. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c41 --- Comment #41 from Michael Chang <mchang@suse.com> 2012-09-12 04:32:21 UTC ---
From the log, it's obvious that grub2-probe took too many time to complete. The time spent is approx 12s each, but you have to time the value with 19.
$ grep grub2-probe bug-774560_grub2-mkcofing-strace.log | wc -l 19 The sum of time is 19x12=228s, which is ridiculous. For your reference, on my testing laptop grub2-probe completes between 0.01 to 0.02s. The difference to yours is huge. The strace output would be very helpful, would you please help to provide? $ strace -T /usr/sbin/grub2-probe --verbose --device /dev/sda1 --target=fs > grub2-probe-strace_T.log Meanwhile .. I'll try digging the code to find any suspicious, but would be much more helpful with above log. Thanks. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c42 --- Comment #42 from Michael Chang <mchang@suse.com> 2012-09-12 04:40:38 UTC --- Hi Roman, correction .. the command is not correct, forget to redirect stderr to stdout. Please use this one. :-D $ strace -T /usr/sbin/grub2-probe --verbose --device /dev/sda1 --target=fs > grub2-probe-strace_T.log 2>&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.
https://bugzilla.novell.com/show_bug.cgi?id=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c43 --- Comment #43 from Roman Bysh <rb03884@gmail.com> 2012-09-12 15:50:10 UTC --- Created an attachment (id=505440) --> (http://bugzilla.novell.com/attachment.cgi?id=505440) The latest grub2-probe-strace_T.log Michael As per request. The strace file. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c44 --- Comment #44 from Roman Bysh <rb03884@gmail.com> 2012-09-12 15:58:52 UTC --- BTW What brand of laptop and cpu are you using? I'm using a desktop with an P5Q motherboard. My CPU is a quad-core Q6600. When we had grub2 1.99. It ran very fast. Once we switched to grub 2.0 it slowed to a crawl. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c45 --- Comment #45 from Roman Bysh <rb03884@gmail.com> 2012-09-12 16:00:35 UTC --- Why is grub2 fs type set to ext2? -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c46 --- Comment #46 from Michael Chang <mchang@suse.com> 2012-09-13 06:40:10 UTC --- (In reply to comment #45)
Why is grub2 fs type set to ext2?
That's grub2's ext2 fs module and is used by all ext fs family. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c47 --- Comment #47 from Michael Chang <mchang@suse.com> 2012-09-13 06:52:15 UTC --- Roman, Thanks for your log. I think the culprit is identified .. open("/dev/fd0", O_RDONLY) = 4 <12.203271> Please check your /boot/grub2/device.map and *remove* this line (fd0) /dev/fd0 This is a regression indeed, grub2 2.00 drops device.map thus we create it by YaST (I guess the grub2 created one did not have fd0). The (fd0) grub devices maps to floopy device and grub2-probe would try to open it for whatever reason and block on it for 12s. I'll try to resolve the problem (maybe a review of device.map is needed or not and probably completely drop device.map as grub2 could be installed by mutipath device names so the mapping to grub device name seems to superfluous ..) Thanks .. and let me know if you still have problem after you removing that line. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c48 --- Comment #48 from Roman Bysh <rb03884@gmail.com> 2012-09-13 16:09:22 UTC --- That was my conclusion also. I just tested it and it is running extremely fast!! Success!! -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c49 --- Comment #49 from Roman Bysh <rb03884@gmail.com> 2012-09-13 16:58:23 UTC --- This fixes two bugs about grub2-mkconfig taking too long and this bug. The Yast2-Boot Loader runs much faster and no longer freezes. -- 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=774560 https://bugzilla.novell.com/show_bug.cgi?id=774560#c50 Torsten Duwe <duwe@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |duwe@suse.com Resolution| |FIXED --- Comment #50 from Torsten Duwe <duwe@suse.com> 2012-10-11 12:59:22 UTC --- Fixed with grub-2.0 / in Factory / GM. -- 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