From 79d497b0da8dcc903446179d153c3fc3c4f72db5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 6 Mar 2002 15:52:58 +0000 Subject: (add_append): don't add to entries of type 'other' --- perl-install/bootloader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index ea83ebbd7..60e048e7e 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -206,7 +206,7 @@ sub get_append { sub add_append { my ($b, $key, $val) = @_; - foreach (\$b->{perImageAppend}, map { \$_->{append} } @{$b->{entries}}) { + foreach (\$b->{perImageAppend}, map { \$_->{append} } grep { $_->{type} eq 'image' } @{$b->{entries}}) { my ($simple, $dict) = unpack_append($$_); @$dict = grep { $_->[0] ne $key || $key eq 'mem' && append__mem_is_memsize($_->[1]) != append__mem_is_memsize($val) } @$dict; push @$dict, [ $key, $val ] if $val; -- cgit v1.2.1