pentoo / pentoo-installer

Pentoo installer rewritten by Wuodan to be more modular
10 stars 6 forks source link

Erorr: Couldn't find grub.conf #12

Closed blshkv closed 8 years ago

blshkv commented 8 years ago
Error: Couldn't find /mnt/gentoo/boot/grub/grub.conf. 
Is GRUB installed?
 /mnt/gentoo/boot/grub/ $ ls -al
device.map
menu.lst -> ./grub.conf <-- symlink is broken
pentoo.xpm.gz
blshkv commented 8 years ago
++ _DISK=/dev/sda
++ _PNUM=1
++ _PNUM=0
+++ grep ' /dev/sda$'
+++ cut '-d ' -f1
+++ sed -r -e 's/[\(\)]//g' -e 's/[[:blank:]]+/ /g' /mnt/gentoo/boot/grub/device.map
++ _DISK_GRUB=hd0
++ '[' -n hd0 ']'
++ '[' -n 0 ']'
++ echo -n '(hd0,0)'
++ return 0
+ PART_GRUB='(hd0,0)'
+ SUBDIR=
++ get_parent_disk /dev/sda1
++ check_num_args get_parent_disk 1 1
++ '[' 1 -ne 1 ']'
++ return 0
++ local _PARENT=
+++ lsblk -dnp -o PKNAME /dev/sda1
++ _PARENT=/dev/sda
+++ lsblk -dnp -o TYPE /dev/sda
++ '[' disk '!=' disk ']'
++ echo /dev/sda
++ return 0
+ DISK_BOOT=/dev/sda
+ KERNEL_PARAMS=
++ getkernelversion
++ local _KERNVER=
+++ ls /mnt/gentoo/boot/kernel-genkernel-x86_64-4.4.8-pentoo-r2
+++ sed -e 's|kernel-genkernel||g' -e 's|/mnt/gentoo/boot/||'
++ _KERNVER=-x86_64-4.4.8-pentoo-r2
++ echo -x86_64-4.4.8-pentoo-r2
+ KERNVER=-x86_64-4.4.8-pentoo-r2
++ getkernelparams /dev/sda2 /dev/sda1 '' ''
++ check_num_args getkernelparams 4 4
++ '[' 4 -ne 4 ']'
++ return 0
++ local _ROOTPART=/dev/sda2
++ local _BOOTPART=/dev/sda1
++ local _CRYPTTYPE=
++ local _CRYPTNAME=
++ local _KERNEL_PARAMS=
+++ parse_kernel_cmdline
+++ local _VAR=
+++ local _FIRST=0
++++ cat /proc/cmdline
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ '[' 0 -ne 0 ']'
+++ echo -n video=uvesafb:mtrr:3,ywrap,1024x768-16
+++ _FIRST=1
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
+++ for _VAR in '$(cat /proc/cmdline)'
+++ case "${_VAR}" in
++ _KERNEL_PARAMS=video=uvesafb:mtrr:3,ywrap,1024x768-16
++ '[' '' '!=' '' ']'
++ _KERNEL_PARAMS='root=/dev/ram0 real_root=/dev/sda2 video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty1 net.ifnames=0 ro'
++ echo 'root=/dev/ram0 real_root=/dev/sda2 video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty1 net.ifnames=0 ro'
++ return 0
+ KERNEL_PARAMS='root=/dev/ram0 real_root=/dev/sda2 video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty1 net.ifnames=0 ro'
+ GRUBMENU=/mnt/gentoo/boot/grub/grub.conf
+ rm /mnt/gentoo/boot/grub/menu.lst
rm: cannot remove ‘/mnt/gentoo/boot/grub/menu.lst’: No such file or directory
+ ln -s ./grub.conf /mnt/gentoo/boot/grub/menu.lst
+ '[' '!' -f /mnt/gentoo/boot/grub/grub.conf ']'
+ show_dialog --msgbox 'Error: Couldn'\''t find /mnt/gentoo/boot/grub/grub.conf. Is GRUB installed?' 0 0
+ local _ARGUMENTS=
+ local _HEIGHT=
+ local _WIDTH=
+ local _BOXOPTION_INDEX=
+ local _INDEX=0
+ local _WHICHDIALOG=
+ local ANSWER=
+ local _DIALOGRETURN=
+ local _XDIALOG_AUTOSIZE_PERCENTAGE=33
+ _ARGUMENTS=("$@")
+ _ARGUMENTS=('--backtitle' "${TITLE}" '--aspect' '15' "$@")
++ get_dialog
++ echo dialog
++ return 0
+ _WHICHDIALOG=dialog
+ '[' dialog = Xdialog ']'
++ dialog --backtitle 'Pentoo Installation' --aspect 15 --msgbox 'Error: Couldn'\''t find /mnt/gentoo/boot/grub/grub.conf. Is GRUB installed?' 0 0
+ _ANSWER=
+ _DIALOGRETURN=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ '[' 0 -ne 0 ']'
+ echo -n ''
+ return 0
+ exit 1
+ exit 1
+ RETSUB=1
blshkv commented 8 years ago

ok, I fixed that bug in https://github.com/pentoo/pentoo-installer/commit/60bc006fccdd2a4a6e98bb0f36b1d1a5bb6d0a1a but the old problem is back: https://github.com/pentoo/pentoo-installer/issues/8