summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
Diffstat (limited to 'inst')
-rwxr-xr-xinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/inst b/inst
index 6189752..c7ff1f8 100755
--- a/inst
+++ b/inst
@@ -4,6 +4,7 @@ set -u
host=
postinst_pkgs=
+postinst_script=
dev=
target=
@@ -394,6 +395,11 @@ do_install_extra()
return 1
}
+do_postinst()
+{
+ . "${postinst_script}"
+}
+
do_chroot_cleanup()
{
local mp=
@@ -481,6 +487,7 @@ main()
. "${host_dir}/conf"
postinst_pkgs="$(sed 's/#.*$//;' "${host_dir}/pkgs")"
+ postinst_script="${host_dir}/postinst"
log="$(mktemp)"
exec 4>"${log}"