Lines 237-248
Link Here
|
237 |
compile_kernel |
237 |
compile_kernel |
238 |
|
238 |
|
239 |
# Compile modules |
239 |
# Compile modules |
240 |
if [ "${BUILD_MODULES}" = '1' -a "${BUILD_STATIC}" = '0' ] |
240 |
if [ "${BUILD_MODULES}" = '1' ] && isTrue "${BUILD_STATIC}" |
241 |
then |
241 |
then |
242 |
compile_modules |
242 |
compile_modules |
243 |
fi |
243 |
fi |
244 |
|
244 |
|
245 |
if [ "${SAVE_CONFIG}" = '1' ] |
245 |
if isTrue "${SAVE_CONFIG}" |
246 |
then |
246 |
then |
247 |
print_info 1 "Copying config for successful build to /etc/kernels/kernel-config-${ARCH}-${KV}" |
247 |
print_info 1 "Copying config for successful build to /etc/kernels/kernel-config-${ARCH}-${KV}" |
248 |
[ ! -e '/etc/kernels' ] && mkdir -p /etc/kernels |
248 |
[ ! -e '/etc/kernels' ] && mkdir -p /etc/kernels |
Lines 262-268
Link Here
|
262 |
|
262 |
|
263 |
if [ "${KERNCACHE}" != "" -a "${KERNCACHE_IS_VALID}" != "0" ] |
263 |
if [ "${KERNCACHE}" != "" -a "${KERNCACHE_IS_VALID}" != "0" ] |
264 |
then |
264 |
then |
265 |
[ "${BUILD_STATIC}" = '0' ] && gen_kerncache_extract_modules |
265 |
isTrue "${BUILD_STATIC}" && gen_kerncache_extract_modules |
266 |
gen_kerncache_extract_config |
266 |
gen_kerncache_extract_config |
267 |
fi |
267 |
fi |
268 |
|
268 |
|
Lines 301-307
Link Here
|
301 |
|
301 |
|
302 |
if [ "${BUILD_RAMDISK}" = '1' ] |
302 |
if [ "${BUILD_RAMDISK}" = '1' ] |
303 |
then |
303 |
then |
304 |
if [ "${BUSYBOX}" = '1' ] |
304 |
if isTrue "${BUSYBOX}" |
305 |
then |
305 |
then |
306 |
# Compile Busybox |
306 |
# Compile Busybox |
307 |
compile_busybox |
307 |
compile_busybox |
Lines 363-376
Link Here
|
363 |
echo |
363 |
echo |
364 |
print_warning 1 'WARNING... WARNING... WARNING...' |
364 |
print_warning 1 'WARNING... WARNING... WARNING...' |
365 |
print_warning 1 'Additional kernel cmdline arguments that *may* be required to boot properly...' |
365 |
print_warning 1 'Additional kernel cmdline arguments that *may* be required to boot properly...' |
366 |
[ "${SPLASH}" = '1' ] && print_warning 1 "add \"vga=791 splash=silent,theme:${SPLASH_THEME} console=tty1 quiet\" if you use a splash framebuffer ]" |
366 |
isTrue "${SPLASH}" && print_warning 1 "add \"vga=791 splash=silent,theme:${SPLASH_THEME} console=tty1 quiet\" if you use a splash framebuffer ]" |
367 |
[ "${LVM}" = '1' ] && print_warning 1 'add "dolvm" for lvm support' |
367 |
isTrue "${LVM}" && print_warning 1 'add "dolvm" for lvm support' |
368 |
[ "${DMRAID}" = '1' ] && print_warning 1 'add "dodmraid" for dmraid support' |
368 |
isTrue "${DMRAID}" && print_warning 1 'add "dodmraid" for dmraid support' |
369 |
[ "${MDADM}" = '1' ] && print_warning 1 'add "domdadm" for RAID support' |
369 |
isTrue "${MDADM}" && print_warning 1 'add "domdadm" for RAID support' |
370 |
[ "${DMRAID}" = '1' ] && print_warning 1 ' or "dodmraid=<additional options>"' |
370 |
isTrue "${DMRAID}" && print_warning 1 ' or "dodmraid=<additional options>"' |
371 |
[ "${ZFS}" = '1' ] && print_warning 1 'add "dozfs" for ZFS volume management support' |
371 |
isTrue "${ZFS}" && print_warning 1 'add "dozfs" for ZFS volume management support' |
372 |
[ "${ZFS}" = '1' ] && print_warning 1 ' and either "root=ZFS" to use bootfs autodetection or "root=ZFS=<dataset>" to force booting from a specific dataset' |
372 |
isTrue "${ZFS}" && print_warning 1 ' and either "root=ZFS" to use bootfs autodetection or "root=ZFS=<dataset>" to force booting from a specific dataset' |
373 |
[ "${ISCSI}" = '1' ] && print_warning 1 'add at least "iscsi_initiatorname=<initiator name> iscsi_target=<target name> and iscsi_address=<target ip>" for iscsi support' |
373 |
isTrue "${ISCSI}" && print_warning 1 'add at least "iscsi_initiatorname=<initiator name> iscsi_target=<target name> and iscsi_address=<target ip>" for iscsi support' |
374 |
|
374 |
|
375 |
if [[ "$(file --brief --mime-type "${KERNEL_CONFIG}")" == application/x-gzip ]]; then |
375 |
if [[ "$(file --brief --mime-type "${KERNEL_CONFIG}")" == application/x-gzip ]]; then |
376 |
# Support --kernel-config=/proc/config.gz, mainly |
376 |
# Support --kernel-config=/proc/config.gz, mainly |