diff options
author | Daniel Baumann <daniel@debian.org> | 2008-08-14 21:33:56 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:39 +0100 |
commit | 3e3bb4260766082847fb162baf1a99aa4fbf7c49 (patch) | |
tree | 3ca00b38e66da4a2bd0bf83a1503e89a41ca47b6 /helpers/lh_binary_includes | |
parent | fe8484f3cd11620e793dba71425abcb3cde9757e (diff) | |
download | vyos-live-build-3e3bb4260766082847fb162baf1a99aa4fbf7c49.tar.gz vyos-live-build-3e3bb4260766082847fb162baf1a99aa4fbf7c49.zip |
Moving win32-loader inclusion support from external hook into main program (Closes: #476546).
Diffstat (limited to 'helpers/lh_binary_includes')
-rwxr-xr-x | helpers/lh_binary_includes | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes index 6954377c0..c90e75c9c 100755 --- a/helpers/lh_binary_includes +++ b/helpers/lh_binary_includes @@ -164,5 +164,20 @@ then sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt fi +# Copying win32-loader +if [ "${LH_WIN32_LOADER}" = "enabled" ] +then + case "${LH_ARCHITECTURE}" in + amd64|i386) + if Find_files /usr/lib/win32-loader/* + then + cp /usr/lib/win32-loader/* binary + else + Echo_warning "win32-loader inclusion is enabled but not found, ignoring." + fi + ;; + esac +fi + # Creating stage file Create_stagefile .stage/binary_includes |