diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-09-12 14:20:53 +0200 |
---|---|---|
committer | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-09-12 14:20:53 +0200 |
commit | a2ab89bd17cbc1565593dc976a8d590b1e88f2d1 (patch) | |
tree | 236f8da7fe6bf2470d74ebedc19abf79f5a9bd06 /src | |
parent | e697f81b256a0bbc710c88c5b830344a6fe411d2 (diff) | |
download | bcfg2-a2ab89bd17cbc1565593dc976a8d590b1e88f2d1.tar.gz bcfg2-a2ab89bd17cbc1565593dc976a8d590b1e88f2d1.tar.bz2 bcfg2-a2ab89bd17cbc1565593dc976a8d590b1e88f2d1.zip |
DebInit: Check for .legacy-bootordering file
If the file /etc/init.d/.legacy-bootordering exists, dependency-based
booting isn't used, even when running on Debian releases newer than
lenny.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/DebInit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/DebInit.py b/src/lib/Client/Tools/DebInit.py index d6ce16c52..be51a5303 100644 --- a/src/lib/Client/Tools/DebInit.py +++ b/src/lib/Client/Tools/DebInit.py @@ -35,7 +35,8 @@ class DebInit(Bcfg2.Client.Tools.SvcTool): if entry.get('sequence'): if (deb_version in DEBIAN_OLD_STYLE_BOOT_SEQUENCE or - deb_version.startswith('5')): + deb_version.startswith('5') or + os.path.exists('/etc/init.d/.legacy-bootordering')): start_sequence = int(entry.get('sequence')) kill_sequence = 100 - start_sequence else: |