summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
Diffstat (limited to 'move/move.pm')
-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($_));