summaryrefslogtreecommitdiff
path: root/components/bootstrap-hooks
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-25 17:08:20 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2014-04-26 08:05:32 +0200
commitc3bd85f0de1a14544713fa442bea6e68327877cf (patch)
treefc40d4fbbae109b7b6d55fe074ffead361272a77 /components/bootstrap-hooks
parent1867dc1e5296852f55132e0799b037dc2fc72d1a (diff)
downloadvyos-live-build-c3bd85f0de1a14544713fa442bea6e68327877cf.tar.gz
vyos-live-build-c3bd85f0de1a14544713fa442bea6e68327877cf.zip
Run hooks in sorted order (Closes: #745839).
glob.glob() returns files in filesystem order, which is unpredictable on many modern filesystems.
Diffstat (limited to 'components/bootstrap-hooks')
-rwxr-xr-xcomponents/bootstrap-hooks2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/bootstrap-hooks b/components/bootstrap-hooks
index e27f1adee..9eaa5ea71 100755
--- a/components/bootstrap-hooks
+++ b/components/bootstrap-hooks
@@ -80,7 +80,7 @@ def main():
hooks = glob.glob('config/hooks/*.hook') + glob.glob('config/hooks/*.hook.bootstrap')
- for hook in hooks:
+ for hook in sorted(hooks):
if verbose:
print('I: Copying config/hooks/*.hook.bootstrap to chroot/live-build')