summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 23313c5f6..52b33a9ad 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -137,7 +137,9 @@ You can add some more or change the existing ones."),
if ($in->ask_from_list_('', _("Which type of entry do you want to add?"),
[ __("Linux"), arch() =~ /sparc/ ? __("Other OS (SunOS...)") : __("Other OS (windows...)") ]
) eq "Linux") {
- $e = { type => 'image' };
+ $e = { type => 'image',
+ root => '/dev/' . fsedit::get_root($fstab)->{device}, #- assume a good default.
+ };
$prefix = "linux";
} else {
$e = { type => 'other' };