summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-17 18:04:24 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-17 18:04:24 +0000
commite6b1181d1fae2b88fe5156263953016c7a8b10a2 (patch)
treefb2896465d1a0028ce46f18f692eb37472509900
parentc086e08af6d35bc5ab75b6fd9b87aaf6bd9d1f67 (diff)
downloaddrakx-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar
drakx-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.gz
drakx-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.bz2
drakx-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.xz
drakx-e6b1181d1fae2b88fe5156263953016c7a8b10a2.zip
command line option cleankey allows to remove previously saved system configuration and re detect everything
-rw-r--r--move/move.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index 589bf996f..c6d96d087 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -262,7 +262,8 @@ unplug it, remove write protection, and then plug it again.")),
mkdir '/home/.sysconf';
my $sysconf = '/home/.sysconf/' . machine_ident();
- if (!-d $sysconf) {
+ if (!-d $sysconf || cat_('/proc/cmdline') =~ /\bcleankey\b/) {
+ rm_rf $sysconf;
mkdir $sysconf;
foreach (chomp_(cat_('/image/move/keyfiles'))) {
mkdir_p("$sysconf/" . dirname($_));