On 14.07.2009, Heinz Diehl wrote:
insserv: There is a loop between service boot.localfs and boot.crypto if started
Yes, you have to remove "boot.localfs" in Required-Start: in boot.crypto, of course. I should have mentioned that. Sorry!
Here's an example, maybe it's clear for you now:
#! /bin/sh
#
# Copyright (c) 2001-2002 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# /etc/init.d/boot.localfs
#
### BEGIN INIT INFO
# Provides: boot.localfs
# Required-Start: boot.crypto boot.udev boot.rootfsck
# Should-Start: boot.md boot.lvm dasd_devfs_compat boot.multipath boot.evms boot.loadmodules
# Required-Stop: boot.udev
# Should-Stop: boot.lvm dasd_devfs_compat boot.multipath
# Default-Start: B
# Default-Stop:
# Short-Description: check and mount local filesystems except /
# Description: check and mount local filesystems except /
### END INIT INFO
#!/bin/bash
# Copyright (C) 1996-2009 SUSE Linux Products GmbH, Nuernberg, Germany.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Author: Werner Fink