diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-01-13 00:56:40 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-01-13 00:56:40 (EST) |
commit | b490b9ebf4196521ec33463300dc93f30f509ce8 (patch) | |
tree | f4317d510e5f351fbaab9c2cc61512a5e24d2903 /inst | |
parent | 3c89678ff7a90873bd4a48207bce7d373f17bdf2 (diff) | |
download | pc-inst-b490b9ebf4196521ec33463300dc93f30f509ce8.zip pc-inst-b490b9ebf4196521ec33463300dc93f30f509ce8.tar.gz pc-inst-b490b9ebf4196521ec33463300dc93f30f509ce8.tar.bz2 |
inst: Load postinst code from separate files
Diffstat (limited to 'inst')
-rwxr-xr-x | inst | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}" |