summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-06 16:27:05 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-06 16:27:05 +0000
commitf3089ecb1b69198eaa661912d27029a9c3691f0f (patch)
treebf988254e5baeb4849c792af0de74f0f8323b095
parente01118f2cf144d188570a291a437c3215b429487 (diff)
downloaddraklive-install-f3089ecb1b69198eaa661912d27029a9c3691f0f.tar
draklive-install-f3089ecb1b69198eaa661912d27029a9c3691f0f.tar.gz
draklive-install-f3089ecb1b69198eaa661912d27029a9c3691f0f.tar.bz2
draklive-install-f3089ecb1b69198eaa661912d27029a9c3691f0f.tar.xz
draklive-install-f3089ecb1b69198eaa661912d27029a9c3691f0f.zip
rediscover hardddisks at first boot
-rwxr-xr-xdraklive-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive-install b/draklive-install
index c955d90..6e34410 100755
--- a/draklive-install
+++ b/draklive-install
@@ -179,6 +179,14 @@ run_program::run('makedev', $::prefix . '/dev');
#- write fstab
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 = Storable::retrieve($harddrake_file);
+delete $harddrake_conf->{HARDDISK};
+Storable::store($harddrake_conf, $harddrake_file);
+
# enable back some disabled services
require services;
services::start_service_on_boot($_) foreach qw(dkms crond);