### BEGIN INIT INFO
# Provides: live-initramfs
# Required-Start: $syslog
-# Required-Stop: $syslog
+# Required-Stop:
# Should-Start: $local_fs
-# Should-Stop: $local_fs
-# Default-Start: 1 2 3 4 5
+# Should-Stop: halt reboot
+# X-Stop-After: umountroot
+# Default-Start:
# Default-Stop: 0 6
# Short-Description: live-initramfs init script
# Description: Resyncs snapshots, evantually caches files in order to
if [ -z ${QUICKREBOOT} ]
then
- # in order to deal with the aufs unmount problem, we do a sync here.
- sync
- sleep 1
- sync
-
# TODO: i18n
BOOT_DEVICE="$(get_boot_device)"
}
case "${1}" in
- start|restart|reload|force-reload|status)
+ restart|reload|force-reload|status)
[ "${VERBOSE}" != no ] && log_end_msg 0
;;
- stop)
+ start|stop)
log_begin_msg "${NAME} is resyncing snapshots and caching reboot files..."
do_stop