diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 18:04:24 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 18:04:24 +0000 |
commit | e6b1181d1fae2b88fe5156263953016c7a8b10a2 (patch) | |
tree | fb2896465d1a0028ce46f18f692eb37472509900 /move | |
parent | c086e08af6d35bc5ab75b6fd9b87aaf6bd9d1f67 (diff) | |
download | drakx-backup-do-not-use-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar drakx-backup-do-not-use-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.gz drakx-backup-do-not-use-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.bz2 drakx-backup-do-not-use-e6b1181d1fae2b88fe5156263953016c7a8b10a2.tar.xz drakx-backup-do-not-use-e6b1181d1fae2b88fe5156263953016c7a8b10a2.zip |
command line option cleankey allows to remove previously saved system configuration and re detect everything
Diffstat (limited to 'move')
-rw-r--r-- | move/move.pm | 3 |
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($_)); |