3 ## live-build(7) - System Build Scripts
4 ## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
13 # Including common functions
14 [ -e "${LIVE_BUILD}/scripts/build.sh" ] && .
"${LIVE_BUILD}/scripts/build.sh" || .
/usr
/lib
/live
/build.sh
16 # Setting static variables
17 DESCRIPTION
="$(Echo 'copy loadlin into binary')"
19 USAGE
="${PROGRAM} [--force]"
23 # Reading configuration files
24 Read_conffiles config
/all config
/common config
/bootstrap config
/chroot config
/binary config
/source
27 if [ "${LB_LOADLIN}" != "true" ] ||
[ "${LB_BINARY_IMAGES}" = "netboot" ]
32 Echo_message
"Begin copying loadlin..."
34 # Requiring stage file
35 Require_stagefile .build
/config .build
/bootstrap
38 Check_stagefile .build
/binary_loadlin
46 case "${LB_ARCHITECTURES}" in
48 case "${LB_BUILD_WITH_CHROOT}" in
51 Check_package chroot
/usr
/lib
/loadlin
/loadlin.exe.gz loadlin
54 Restore_cache cache
/packages.binary
69 gunzip
-c "${_PREFIX}/usr/lib/loadlin/loadlin.exe.gz" > binary
/tools
/loadlin.exe
70 gunzip
-c "${_PREFIX}/usr/share/doc/loadlin/manual.txt.gz" > binary
/tools
/loadlin.txt
72 case "${LB_BUILD_WITH_CHROOT}" in
75 Save_cache cache
/packages.binary
82 cat > binary
/install
/install.bat
<< EOF
83 \tools\loadlin.exe vmlinuz initrd=initrd.gz
86 if [ -e binary
/install
/gtk
]
89 cat > binary
/install
/gtk
/install.bat
<< EOF
90 \tools\loadlin.exe \install\vmlinuz initrd=initrd.gz vga=788
96 Create_stagefile .build
/binary_loadlin
100 Echo_warning
"loadlin inclusion is set to true but not compatible with your architecture, ignoring."