summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>1999-11-09 17:31:24 +0000
committerFrancois Pons <fpons@mandriva.com>1999-11-09 17:31:24 +0000
commit02b57b61aafd29a78023e242a0cf998cd93a91ee (patch)
tree604e259cea3da5ad2f046fd2e11a6c6f631dd1ba /perl-install/install_any.pm
parent57b9b33657beba4976551212a562ac85ff22f81f (diff)
downloaddrakx-02b57b61aafd29a78023e242a0cf998cd93a91ee.tar
drakx-02b57b61aafd29a78023e242a0cf998cd93a91ee.tar.gz
drakx-02b57b61aafd29a78023e242a0cf998cd93a91ee.tar.bz2
drakx-02b57b61aafd29a78023e242a0cf998cd93a91ee.tar.xz
drakx-02b57b61aafd29a78023e242a0cf998cd93a91ee.zip
*** empty log message ***
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index ef36e6fca..aa9107456 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -244,6 +244,12 @@ sub searchAndMount4Upgrade {
}
}
+sub remount_readonly {
+ my ($o, $dir) = @_;
+ my $device = first(grep { $_->{mntpoint} eq $dir } @{$o->{fstab}});
+ eval { fs::mount_part($device, $device, 'readonly', 'remount') };
+}
+
sub write_ldsoconf {
my ($prefix) = @_;
my $file = "$prefix/etc/ld.so.conf";