From 2c6051c628974a1eded49f8895f6c4611008a17b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 1 Jul 2005 04:34:43 +0000 Subject: mkinitrd only handle ext2/ext3 labels, so disallow labels on "/" for other fs types --- perl-install/fs/format.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm index 93882788f..97ce94740 100644 --- a/perl-install/fs/format.pm +++ b/perl-install/fs/format.pm @@ -100,7 +100,8 @@ sub part_raw { log::l("shortening LABEL $part->{device_LABEL} to $short"); $part->{device_LABEL} = $short; } - delete $part->{prefer_device_LABEL} if !$handled_by_mount; + delete $part->{prefer_device_LABEL} + if !$handled_by_mount || $part->{mntpoint} eq '/' && !member($fs_type, 'ext2', 'ext3'); push @options, $option, $part->{device_LABEL}; } else { -- cgit v1.2.1