summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-21 09:13:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-21 09:13:16 +0000
commit92761bf6a9c1b987096d32568233fd3fd13c2b5b (patch)
tree20f8fe7e84f3b7f396912b88b1e968bdbc1f1188
parent16f57ee61e20b5197b7b0bdcd2f34f9f678e38fa (diff)
downloaddrakx-92761bf6a9c1b987096d32568233fd3fd13c2b5b.tar
drakx-92761bf6a9c1b987096d32568233fd3fd13c2b5b.tar.gz
drakx-92761bf6a9c1b987096d32568233fd3fd13c2b5b.tar.bz2
drakx-92761bf6a9c1b987096d32568233fd3fd13c2b5b.tar.xz
drakx-92761bf6a9c1b987096d32568233fd3fd13c2b5b.zip
- diskdrake:
o fix switching from LABEL=xxx to /dev/yyy in fstab (#37914) merge_fstabs() was doing add2hash, replacing it with add2hash_ so that faked_device => 1 from fstab is not kept
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/fs.pm2
-rw-r--r--perl-install/fsedit.pm2
3 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index e1e72d482..bab36593b 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- diskdrake:
+ o fix switching from LABEL=xxx to /dev/yyy in fstab (#37914)
- add support for snd-aw2
- drakboot --boot:
o fix dropping grub "configfile" entries when switching to lilo
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index e672d2c98..ea95242cc 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -121,7 +121,7 @@ sub merge_fstabs {
if (!$loose) {
$p->{fs_type} = $p2->{fs_type} if $p2->{fs_type};
$p->{options} = $p2->{options} if $p2->{options};
- add2hash($p, $p2);
+ add2hash_($p, $p2);
} else {
$p->{isMounted} ||= $p2->{isMounted};
$p->{real_mntpoint} ||= $p2->{real_mntpoint};
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index e20e44a8f..6260c9271 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -268,6 +268,8 @@ Do you agree to lose all the partitions?
fs::get_major_minor([ fs::get::fstab($all_hds) ]);
+ $_->{faked_device} = 0 foreach fs::get::fstab($all_hds);
+
$all_hds;
}