summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-22 10:06:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-22 10:06:36 +0000
commitd20f455d04057c1f866610ed312fc3b355549301 (patch)
treebe360067d98265816cd1cec8868907428bd13f59
parent5572b5b7de65d8b17cf9c1a2be19c0632c6685bf (diff)
downloaddrakx-backup-do-not-use-d20f455d04057c1f866610ed312fc3b355549301.tar
drakx-backup-do-not-use-d20f455d04057c1f866610ed312fc3b355549301.tar.gz
drakx-backup-do-not-use-d20f455d04057c1f866610ed312fc3b355549301.tar.bz2
drakx-backup-do-not-use-d20f455d04057c1f866610ed312fc3b355549301.tar.xz
drakx-backup-do-not-use-d20f455d04057c1f866610ed312fc3b355549301.zip
fix bug #3652 (grub must be installed for a loopback install)
-rw-r--r--perl-install/install_any.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index b3cfbd83c..f0ce7fcb9 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -323,6 +323,7 @@ sub setDefaultPackages {
push @{$o->{default_packages}}, "raidtools" if !is_empty_array_ref($o->{all_hds}{raids});
push @{$o->{default_packages}}, "lvm" if !is_empty_array_ref($o->{all_hds}{lvms});
push @{$o->{default_packages}}, "alsa", "alsa-utils" if modules::get_alias("sound-slot-0") =~ /^snd-/;
+ push @{$o->{default_packages}}, "grub" if isLoopback(fsedit::get_root($o->{fstab}));
push @{$o->{default_packages}}, uniq(grep { $_ } map { fsedit::package_needed_for_partition_type($_) } @{$o->{fstab}});
#- if no cleaning needed, populate by default, clean is used for second or more call to this function.