[Bug 679511] New: duplicate modes in /lib/mkinitrd/scripts/setup-splash.sh
https://bugzilla.novell.com/show_bug.cgi?id=679511 https://bugzilla.novell.com/show_bug.cgi?id=679511#c0 Summary: duplicate modes in /lib/mkinitrd/scripts/setup-splash.sh Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- running mkinitrd in 11.4 takes minutes! I wouldn't really call this "Severity: Enhancement" but "VeryNasty" :-( most time is spent in /lib/mkinitrd/scripts/setup-splash.sh: "hwinfo --framebuffer" is called *many* times because $modes containes the video mode 0x37d 73 times :-( timing for one hwinfo call: time hwinfo --framebuffer > /dev/null 2.443 0m2.443s real, 2.315 user, 0.084 sys, 98.18 cpu most time hwinfo hangs with the output > bios.4.2: mode info here is a small patch to sort that modes list to uniq modes (only 1 entry left for me!) : --- /lib/mkinitrd/scripts/setup-splash.sh~ 2010-07-05 14:40:26.000000000 +0200 +++ /lib/mkinitrd/scripts/setup-splash.sh 2011-03-14 20:16:37.000000000 +0100 @@ -24,9 +24,11 @@ modes= for file in $root_dir/{etc/lilo.conf,boot/grub/menu.lst,proc/cmdline}; do [ -e $file ] || continue - modes="$modes $(sed -e '/^[ \t]*#/d' $file \ + modes="$( ( echo $modes | tr ' ' '\012' + sed -e '/^[ \t]*#/d' $file \ | sed -ne 's/^.*vga[ \t]*=[ \t]*\([^ \t]*\).*/\1/p' \ - | sed -ne '/^\([0-9]\+\|0[xX][0-9a-fA-F]\+\)$/p')" + | sed -ne '/^\([0-9]\+\|0[xX][0-9a-fA-F]\+\)$/p' + ) | sort )" done for mode in $modes; do -- 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=679511 https://bugzilla.novell.com/show_bug.cgi?id=679511#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |mmarek@novell.com |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=679511 https://bugzilla.novell.com/show_bug.cgi?id=679511#c Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mmarek@novell.com |mls@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=679511 https://bugzilla.novell.com/show_bug.cgi?id=679511#c1 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cobexer@gmail.com --- Comment #1 from Michael Schröder <mls@novell.com> 2011-06-30 10:16:09 UTC --- *** Bug 702712 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=702712 -- 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=679511 https://bugzilla.novell.com/show_bug.cgi?id=679511#c2 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #2 from Michael Schröder <mls@novell.com> 2011-07-22 16:43:22 UTC --- Fixed package submitted to Factory -- 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