From 9314ac64ead736c3e2b0d990a8b7030c16013993 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 3 Apr 2013 11:25:19 -0500 Subject: [PATCH] migrate-to-run: fix test for successful migration This script originally tested the file system type for the source location of the data we were migrating to determine if the migration was complete. Now we test the destination, and if the softlevel file is there the migration was successful. Reported-by: Piotr Karbowski --- sh/migrate-to-run.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/migrate-to-run.sh.in b/sh/migrate-to-run.sh.in index b18c5418..91f49fa9 100644 --- a/sh/migrate-to-run.sh.in +++ b/sh/migrate-to-run.sh.in @@ -4,7 +4,7 @@ . "@LIBEXECDIR@/sh/functions.sh" -if ! mountinfo -q -f tmpfs "@LIBEXECDIR@/init.d"; then +if [ -e /run/openrc/softlevel ]; then einfo "The OpenRC dependency data has already been migrated." exit 0 fi