summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-30 14:06:30 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-30 14:06:30 +0000
commitbb4ab9c6857d4e9d147ca515704254507198eb65 (patch)
tree1df44fef68c23235cd8b46848dcfce39150a3cef /draklive-install
parent94dce1a370c7f736f0bcab654ac22078e307ea67 (diff)
downloaddraklive-install-bb4ab9c6857d4e9d147ca515704254507198eb65.tar
draklive-install-bb4ab9c6857d4e9d147ca515704254507198eb65.tar.gz
draklive-install-bb4ab9c6857d4e9d147ca515704254507198eb65.tar.bz2
draklive-install-bb4ab9c6857d4e9d147ca515704254507198eb65.tar.xz
draklive-install-bb4ab9c6857d4e9d147ca515704254507198eb65.zip
extract clean_harddrake_hds sub
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install24
1 files changed, 15 insertions, 9 deletions
diff --git a/draklive-install b/draklive-install
index ce006d9..9bc919e 100755
--- a/draklive-install
+++ b/draklive-install
@@ -231,6 +231,20 @@ sub copy_root {
sync_logs();
}
+sub clean_harddrake_hds {
+ my ($prefix) = @_;
+ #- remove harddisks from harddrake's config file, so that hardddisks
+ #- are automatically rediscovered at first boot
+ require Storable;
+ my $harddrake_file = $prefix . "/etc/sysconfig/harddrake2/previous_hw";
+ my $harddrake_conf = eval { Storable::retrieve($harddrake_file) };
+ if ($harddrake_conf) {
+ delete $harddrake_conf->{HARDDISK};
+ Storable::store($harddrake_conf, $harddrake_file);
+ }
+}
+
+
sub complete_install {
my ($in, $all_hds) = @_;
my $_wait = $in->wait_message('', N("Please wait"));
@@ -271,15 +285,7 @@ sub complete_install {
fs::write_fstab($all_hds, $::prefix);
- #- remove harddisks from harddrake's config file, so that hardddisks
- #- are automatically rediscovered at first boot
- require Storable;
- my $harddrake_file = $::prefix . "/etc/sysconfig/harddrake2/previous_hw";
- my $harddrake_conf = eval { Storable::retrieve($harddrake_file) };
- if ($harddrake_conf) {
- delete $harddrake_conf->{HARDDISK};
- Storable::store($harddrake_conf, $harddrake_file);
- }
+ clean_harddrake_hds($::prefix);
# enable back some disabled services
require services;