summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/format.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-07-01 04:34:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-07-01 04:34:43 +0000
commit2c6051c628974a1eded49f8895f6c4611008a17b (patch)
treed1fd28483d049265c1911dca6fd2247f093c0f6f /perl-install/fs/format.pm
parent35e125c9162dea1e60b3f34f8f85923f2b90a2f0 (diff)
downloaddrakx-2c6051c628974a1eded49f8895f6c4611008a17b.tar
drakx-2c6051c628974a1eded49f8895f6c4611008a17b.tar.gz
drakx-2c6051c628974a1eded49f8895f6c4611008a17b.tar.bz2
drakx-2c6051c628974a1eded49f8895f6c4611008a17b.tar.xz
drakx-2c6051c628974a1eded49f8895f6c4611008a17b.zip
mkinitrd only handle ext2/ext3 labels, so disallow labels on "/" for other fs types
Diffstat (limited to 'perl-install/fs/format.pm')
-rw-r--r--perl-install/fs/format.pm3
1 files changed, 2 insertions, 1 deletions
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 {