|
|
|
@ -285,12 +285,12 @@ for (( a = 0; a < $#; a++ )); do |
|
|
|
|
usage |
|
|
|
|
else |
|
|
|
|
check_mode "${args[$a]}" |
|
|
|
|
debug "have mode '${mode}'" |
|
|
|
|
debug "have modes '${modes[*]}'" |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${#commands[@]} -eq 0 || ${mode} == "" ]]; then |
|
|
|
|
if [[ ${#commands[@]} -eq 0 || ${#modes[@]} -eq 0 ]]; then |
|
|
|
|
echo |
|
|
|
|
error "A build mode and command must be selected!" |
|
|
|
|
usage |
|
|
|
@ -307,11 +307,37 @@ fi |
|
|
|
|
|
|
|
|
|
msg "$(date) :: ${script_name} started..." |
|
|
|
|
|
|
|
|
|
if have_command "update_sums"; then |
|
|
|
|
# Only the files in the zfs-utils package will be updated |
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.bash-completion-r1" |
|
|
|
|
azsha1=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_bash_completion_hash.*/zfs_bash_completion_hash=\"${azsha1}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.initcpio.hook" |
|
|
|
|
azsha2=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_initcpio_hook_hash.*/zfs_initcpio_hook_hash=\"${azsha2}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.initcpio.install" |
|
|
|
|
azsha3=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_initcpio_install_hash.*/zfs_initcpio_install_hash=\"${azsha3}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
source_safe "${script_dir}/conf.sh" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if have_command "update_chroot"; then |
|
|
|
|
msg "Updating the x86_64 clean chroot..." |
|
|
|
|
run_cmd "ccm64 u" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
for (( i = 0; i < ${#modes[@]}; i++ )); do |
|
|
|
|
mode=${modes[i]} |
|
|
|
|
kernel_name=${kernel_names[i]} |
|
|
|
|
|
|
|
|
|
get_conflicts |
|
|
|
|
get_kernel_update_funcs |
|
|
|
|
debug_print_default_vars |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export script_dir mode kernel_name |
|
|
|
|
source_safe "src/kernels/${kernel_name}.sh" |
|
|
|
|
|
|
|
|
@ -336,30 +362,6 @@ if have_command "reset_pkgs"; then |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if have_command "update_sums"; then |
|
|
|
|
# Only the files in the zfs-utils package will be updated |
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.bash-completion-r1" |
|
|
|
|
azsha1=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_bash_completion_hash.*/zfs_bash_completion_hash=\"${azsha1}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.initcpio.hook" |
|
|
|
|
azsha2=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_initcpio_hook_hash.*/zfs_initcpio_hook_hash=\"${azsha2}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
run_cmd_show_and_capture_output "sha256sum ${script_dir}/src/zfs-utils/zfs-utils.initcpio.install" |
|
|
|
|
azsha3=$(echo ${run_cmd_output} | awk '{ print $1 }') |
|
|
|
|
run_cmd_no_output "sed -e 's/^zfs_initcpio_install_hash.*/zfs_initcpio_install_hash=\"${azsha3}\"/g' -i ${script_dir}/conf.sh" |
|
|
|
|
|
|
|
|
|
source_safe "${script_dir}/conf.sh" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if have_command "update_chroot"; then |
|
|
|
|
msg "Updating the x86_64 clean chroot..." |
|
|
|
|
run_cmd "ccm64 u" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for func in "${update_funcs[@]}"; do |
|
|
|
|
debug "Evaluating '${func}'" |
|
|
|
|
"${func}" |
|
|
|
@ -375,3 +377,4 @@ for func in "${update_funcs[@]}"; do |
|
|
|
|
build_sources |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|