mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 16:01:34 +00:00
ubuntu-cpc: remove unused final.binary hook support
Right now this is a solution looking for a problem as the implementation no longer relies on it.
This commit is contained in:
parent
8f8ea8922e
commit
c3d1a92933
@ -44,9 +44,6 @@ saved to the "explicit_provides" file in the hooks output directory. In
|
|||||||
the case of the "all" target this list would be empty. This list is
|
the case of the "all" target this list would be empty. This list is
|
||||||
consumed by the "remove-implicit-artifacts" which is run at the end of the build.
|
consumed by the "remove-implicit-artifacts" which is run at the end of the build.
|
||||||
|
|
||||||
The final.binary hook is always included as the last hook(s) if it exists,
|
|
||||||
it should not be specified in series files.
|
|
||||||
|
|
||||||
ACHTUNG: live build runs scripts with the suffix ".chroot" in a batch separate
|
ACHTUNG: live build runs scripts with the suffix ".chroot" in a batch separate
|
||||||
from scripts ending in ".binary". Even if you arrange them interleaved in your
|
from scripts ending in ".binary". Even if you arrange them interleaved in your
|
||||||
series files, the chroot scripts will be run before the binary scripts.
|
series files, the chroot scripts will be run before the binary scripts.
|
||||||
@ -214,11 +211,6 @@ class MakeHooks:
|
|||||||
sys.stderr.write("WARNING: Hooks directory exists and is not empty.\n")
|
sys.stderr.write("WARNING: Hooks directory exists and is not empty.\n")
|
||||||
os.makedirs(self._hooks_dir, exist_ok=True)
|
os.makedirs(self._hooks_dir, exist_ok=True)
|
||||||
|
|
||||||
# Always add final.binary hook if it exists
|
|
||||||
final_hook = os.path.join(self._script_dir, "base/final.binary")
|
|
||||||
if os.path.exists(final_hook) and os.path.isfile(final_hook):
|
|
||||||
self._hooks_list.append("base/final.binary")
|
|
||||||
|
|
||||||
for counter, hook in enumerate(self._hooks_list, start=1):
|
for counter, hook in enumerate(self._hooks_list, start=1):
|
||||||
hook_basename = os.path.basename(hook)
|
hook_basename = os.path.basename(hook)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user