summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-03 11:25:19 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-03 11:25:19 -0500
commit9314ac64ead736c3e2b0d990a8b7030c16013993 (patch)
tree6e8b727c78ad5698311ed4e4c9e08773a1577d5b
parent19fa20832c3783e134eb15866bcc1481c99a3f80 (diff)
downloadopenrc-9314ac64ead736c3e2b0d990a8b7030c16013993.tar.gz
openrc-9314ac64ead736c3e2b0d990a8b7030c16013993.tar.bz2
openrc-9314ac64ead736c3e2b0d990a8b7030c16013993.tar.xz
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>
-rw-r--r--sh/migrate-to-run.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/migrate-to-run.sh.in b/sh/migrate-to-run.sh.in
index b18c541..91f49fa 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