From 1fb175a266e45828a5588e2f44660c2a70057bf0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 3 Jul 2008 15:47:41 -0700 Subject: Fix problem if install-system run twice If install-system is run twice and the first pass copied the old configuration file; then the second time the leftover file from previous attempt needs to be cleaned up. Otherwise, the old configuration file will be copied even if the user doesn't want it! --- scripts/install-system | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/install-system b/scripts/install-system index a77fc446..5a9c0309 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -309,6 +309,9 @@ rename_old_config() { check_config_partition() { lpart=$1 + # Cleanup from possible partial last run + rm -fr /mnt/config + # Look to see if this is a config partition mkdir -p /mnt/tmp output=$(mount /dev/$lpart /mnt/tmp 2>&1) -- cgit v1.2.3