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 <piotr.karbowski@gmail.com>
This commit is contained in:
William Hubbs 2013-04-03 11:25:19 -05:00
parent 19fa20832c
commit 9314ac64ea

View File

@ -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