From 75119f34cf95cfd1d9d64bf6e1c8420781d7083e Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Tue, 22 Dec 2020 15:29:46 +0000 Subject: diskdrake: restrict line length when displaying base device info. This prevents the window extending off screen (mga#27882). Matches what was already done when displaying partition info. --- perl-install/diskdrake/interactive.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/diskdrake') diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index 45b830cc1..59e79782c 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -1493,6 +1493,8 @@ sub format_hd_info { $info .= N("LVM-disks %s\n", join ", ", map { $_->{device} } @{$hd->{disks}}) if isLVM($hd) && $hd->{disks}; $info .= N("Partition table type: %s\n", $1) if $::expert && ref($hd) =~ /_([^_]+)$/; $info .= N("on channel %d id %d\n", $hd->{channel}, $hd->{id}) if $::expert && exists $hd->{channel}; + # restrict the length of the lines + $info =~ s/(.{60}).*/$1.../mg; $info; } -- cgit v1.2.1