Skip to content

return function

patrick requested to merge papajoker:fonction into master
  • can choise return function menu in parameter 3
  • add fonctions path in logs (special dev) if path too long ? can reduce, last 4 for exemple : local _fpath="${FUNCNAME[*]:1:4}()"
02/22/17 18:23:25 mount_current_partition   --mount_current_partition()<-mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]
02/22/17 18:23:33 Create swap partition: swapon   --make_swap()<-mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]
02/22/17 18:23:41 [mkfs.vfat -F32 /dev/sda1][1]  --mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]
02/22/17 18:23:47 mount /dev/sda1 /mnt/boot/efi   --mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]

# path too long ;)
02/22/17 18:28:15 [rank mirrors][1]  --configure_mirrorlist()<-configure_mirrorlist()<-install_base_menu()<-main_menu_online()<-check_base()<-main_menu_online()<-check_base()<-main_menu_online()<-prep_menu()<-main_menu_online()<-check_base()<-main_menu_online()<-prep_menu()<-prep_menu()<-lvm_create()<-lvm_menu()<-prep_menu()<-luks_menu()<-luks_open()<-luks_menu()<-prep_menu()<-mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]

Merge request reports