From c3bd85f0de1a14544713fa442bea6e68327877cf Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 25 Apr 2014 17:08:20 +0100 Subject: Run hooks in sorted order (Closes: #745839). glob.glob() returns files in filesystem order, which is unpredictable on many modern filesystems. --- components/chroot-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/chroot-hooks') diff --git a/components/chroot-hooks b/components/chroot-hooks index ab7bb25e0..a7a24816c 100755 --- a/components/chroot-hooks +++ b/components/chroot-hooks @@ -80,7 +80,7 @@ def main(): hooks = glob.glob('config/hooks/*.hook') + glob.glob('config/hooks/*.hook.chroot') - for hook in hooks: + for hook in sorted(hooks): if verbose: print('I: Copying config/hooks/*.hook.chroot to chroot/live-build') -- cgit v1.2.3