state,
script_maybe_chroot(script, "/work/prepare") + [arg],
network=True,
- options=sources,
+ options=sources + ["--ro-bind", script, script],
scripts=hd,
env=env | state.config.environment,
stdin=sys.stdin,
state,
script_maybe_chroot(script, "/work/build-script") + cmdline,
network=state.config.with_network,
- options=sources,
+ options=sources + ["--ro-bind", script, script],
scripts=hd,
env=env | state.config.environment,
stdin=sys.stdin,
state,
script_maybe_chroot(script, "/work/postinst") + ["final"],
network=state.config.with_network,
- options=sources,
+ options=sources + ["--ro-bind", script, script],
scripts=hd,
env=env | state.config.environment,
stdin=sys.stdin,
state,
script_maybe_chroot(script, "/work/finalize"),
network=state.config.with_network,
- options=sources,
+ options=sources + ["--ro-bind", script, script],
scripts=hd,
env=env | state.config.environment,
stdin=sys.stdin,