[Pkg-sysvinit-commits] r1718 - sysvinit/trunk/debian
Petter Reinholdtsen
pere at alioth.debian.org
Sat Sep 5 09:31:31 UTC 2009
Author: pere
Date: 2009-09-05 09:31:27 +0000 (Sat, 05 Sep 2009)
New Revision: 1718
Modified:
sysvinit/trunk/debian/sysv-rc.postinst
Log:
If the admin refuses to see a critical question, they will have to trust us to know what we are doing. Allow for preseeding of the debconf question asking if it is safe to convert.
Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst 2009-09-04 21:49:10 UTC (rev 1717)
+++ sysvinit/trunk/debian/sysv-rc.postinst 2009-09-05 09:31:27 UTC (rev 1718)
@@ -139,19 +139,16 @@
# the migration.
db_input critical sysv-rc/convert-legacy || [ $? -eq 30 ]
- if db_go ; then
- # Only convert when the question was displayed
- db_get sysv-rc/convert-legacy || true
-
- if [ true = "$RET" ] ; then
- if activate_insserv ; then
- echo "success: Enabled dependency based boot system."
- else
- echo "error: Something failed while migrating."
- fi
+ db_go
+ db_get sysv-rc/convert-legacy || true
+ if [ true = "$RET" ] ; then
+ if activate_insserv ; then
+ echo "success: Enabled dependency based boot system."
else
- echo "warning: Asked to not convert legacy boot sequence to dependency based boot sequencing."
+ echo "error: Something failed while migrating."
fi
+ else
+ echo "warning: Asked to not convert legacy boot sequence to dependency based boot sequencing."
fi
fi
}
More information about the Pkg-sysvinit-commits
mailing list