add option to cp log to target

merge-requests/273/head
Bernhard Landauer 7 years ago
parent 63ce354da8
commit 4e37ac1362

@ -399,3 +399,4 @@ _MMBody="\nEach step must be followed IN ORDER. Steps 4-8 are all optional. Once
# Close Installer
_CloseInstBody="Close installer?"
_LogInfo="Would you like to keep the install-log?\nIt will be copied to /.m-a.log of the target install, accessible with root permissions only."

@ -239,6 +239,7 @@ install_base() {
KERNEL="n"
mhwd-kernel -l | awk '/linux/ {print $2}' > /tmp/.available_kernels
kernels=$(cat /tmp/.available_kernels)
[[ -e /mnt/.openrc ]] && rm /mnt/.openrc
[[ -e /mnt/.base_installed ]] && rm /mnt/.base_installed
# User to select initsystem

@ -46,8 +46,12 @@ main_menu_online() {
;;
*) dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$_CloseInstBody" 0 0
if [[ $? -eq 0 ]]; then
umount_partitions
dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$_LogInfo" 0 0
if [[ $? -eq 0 ]]; then
install -m700 ${LOGFILE} /mnt/.m-a.log
fi
[[ -e /mnt/.openrc ]] && rm /mnt/.openrc
umount_partitions
clear
exit 0
fi

Loading…
Cancel
Save