From 10c019df2aadcb950b776e5a16bc04972a8abd70 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 16 Nov 2021 11:42:46 -0500 Subject: [PATCH] Fix ordering of chmod arguments --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index 6c5816fa..99c94a11 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -531,7 +531,7 @@ class DebHandler(OsHandler): srcdir = os.path.join(mydir, 'initramfs-tools') targdir = os.path.join(self.targpath, 'etc/initramfs-tools') shutil.copytree(srcdir, targdir) - os.chmod(0o755, os.path.join(targdir, 'hooks/confluent')) + os.chmod(os.path.join(targdir, 'hooks/confluent'), 0o755) cmd = ['debootstrap', '--include={0}'.format(','.join(self.includepkgs)), self.codename, self.targpath] subprocess.check_call(cmd)