summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_hooks
AgeCommit message (Collapse)Author
2012-08-27Dropping lb prefix from live-build scripts, not needed anymore.Daniel Baumann
Previously, we needed to keep the lb_* prefix as the scripts could also be executed standalone. Since the lb wrapper is mandatory since squeeze, we can drop this now.
2012-08-27Making build.sh sourcing more robust (Closes: #684896).Daniel Baumann
2012-08-27Applying patch from Colin Watson <cjwatson@ubuntu.com> to correct chroot ↵Daniel Baumann
hooks execution (Closes: #685534).
2012-08-13Simplyfing sourcing of build.sh and getting away with the broken subshell ↵Daniel Baumann
construct.
2012-07-30Updating GPL standard header in all files.Daniel Baumann
2012-07-19Fixing up inclusion of functions while allowing local usage of live-build ↵Daniel Baumann
with different file layouts.
2012-06-04Updating cache directory names to consistent naming scheme.Daniel Baumann
2012-06-03Renaming internal .stage to .build for consistency within the configuration ↵Daniel Baumann
tree.
2012-02-06Updating year in copyright notices for 2012.Daniel Baumann
2012-01-10Use a two-stage mount again for mounting config inside chroot in ↵Matthijs Kooijman
lb_chroot_hooks. This reverts part of cacf9b6e34 (but also adds a "bind" option to the remount command, as documented in mount(8)). Apparently, doing "mount -o bind,ro" doesn't work. It outputs: mount: warning: chroot/root/config seems to be mounted read-write. and mounts read-write instead of read-only. This behaviour is documented in mount(8). Newer kernels do seem to allow combining bind with the read-only option (see mount(2)), but this does not seem to work (possibly because mount is trying to be smart).
2012-01-10Make the config available to all hooks.Matthijs Kooijman
Previously, the config was bindmounted inside the chroot only for hooks from the config dir, now it is done earlier so it is available for all hooks. Note that it is now also done if there are no hooks, but this is probably enough of an exception case to not warrant the extra plumbing required to detect the case (and doing an extra bindmount shouldn't really hurt anyway...).
2012-01-10Fix pathname for running hooks in lb_chroot_hooks.Matthijs Kooijman
lb_chroot_hooks would copy the hooks to run to chroot/root/lb_chroot_hooks, but then try to run them from chroot/root (which obviously fails). This means lb_chroot_hooks has not been working for hooks from /usr/share/live/build/hooks since lb_chroot_hooks was added in revision e4793268. Running hooks from the config directory was unaffected.
2012-01-10Make lb_chroot_hooks work with dash.Matthijs Kooijman
Apparently, dash doesn't expand shell patterns within a quoted string, whereas bash does. We can't remove the quoting entirely, though, since that would cause problems when $LB_BASE or $_HOOK contains spaces (note that $_HOOK can probably never contain spaces, but let's handle it just in case). Only quoting the expansion of $LB_BASE and $_HOOK, but not the shell pattern should make the hooks work with both bash and dash again.
2011-07-25Simplify bind mounting of the config tree during local hooks are run by ↵Daniel Baumann
using read-only bind mounts.
2011-07-21Making config tree available to chroot hooks.Cody A.W. Somerville
2011-07-19Correcting comments in chroot_hooks to match usage.Daniel Baumann
2011-07-19Enabling hooks based on the mode we're building for.Daniel Baumann
2011-06-03Moving 'default' hooks for minimal and stripped to example hooks, they will ↵Daniel Baumann
have to be enabled manually now (Closes: #627183). Previously, there were a couple of hooks that were automatically run for some image flavours. This came back from the old days when we had to deconfigure gdm and enable kdm explicitly for kde images. After lenny, this hack was not needed anymore, and there's not much sense to keep the mechanism in place at all. Better, let's treat all images the same way wrt/ hooks and don't do special automagics. The only images that is of concern of are minimal and stripped which we don't build by default anyway. This also stopps confusing others.
2011-05-18Be more careful with subshells (Closes: #623356).liandro sg
2011-03-09Updating year in hooks and script files.Daniel Baumann
2011-03-09Renaming 'packages lists' to 'package lists' all over the place.Daniel Baumann
2011-03-09Adding debian version 3.0~a1-1.Daniel Baumann
2011-03-09Updating year in manpage, hooks, script and template files.Daniel Baumann
2011-03-09Prefixing helper scripts to make 'out of source' usage usable (Closes: #572455).Daniel Baumann