Re: About Cannot find grub.cfg [ missing dash ("-") in update-grub ]

2021-03-18 Diskussionsfäden Jens Abromeit

Hello Nilesh,

you wrote on the 16th of march 2021 um 16:46:

> chroot: failed to run command 'update grub': no such file or directory
> error=127
> exit 127

It seems, that in your configuration the dash ("-") has to be added in 
the grub command:


update-grub

Please add the the requested output of:

root@[yourinstallhost]:/var/log/fai/[yourinstallhost]/last# ls -la

And please also :

head -30 format.log

Please add :

grep -i grub software.log

and

grep -n1 -b4 -a7 update-grub *

Example Output:

   root@[yourinstallhost]:/var/log/fai/[yourinstallhost]/last# grep -n1
   -b4 -a7 update-grub *
   shell.log-406-12125-+ [[ /dev/sda =~ /dev/md ]]
   shell.log-407-12153-+ chroot /target grub-install --no-floppy
   '(hostdisk//dev/sda)'
   shell.log-408-12217-Installing for i386-pc platform.
   shell.log-409-12250-Installation finished. No error reported.
   shell.log-410-12292-+ '[' 0 -eq 0 ']'
   shell.log-411-12310-+ echo 'Grub installed on /dev/sda =
   (hostdisk//dev/sda)'
   shell.log-412-12368-Grub installed on /dev/sda = (hostdisk//dev/sda)
   shell.log:413:12417:+ chroot /target update-grub
   shell.log-414-12446-Generating grub configuration file ...
   shell.log-415-12485-Found linux image: /boot/vmlinuz-4.19.0-5-amd64
   shell.log-416-12533-Found initrd image: /boot/initrd.img-4.19.0-5-amd64
   shell.log-417-12585-Found memtest86+ image: /boot/memtest86+.bin
   shell.log-418-12630-Found memtest86+ multiboot image:
   /boot/memtest86+_multiboot.bin
   shell.log-419-12695-done
   shell.log-420-12700-+ exit 0

For better understanding:

More at end of the FAI installation process the bootloader grub will be 
installed

and a final "update-grub" is done.

And in general:

We don't see what you see. Please add all requested information to your 
requests as requested

This extend the willingness to help.

One of the most common misconceptions is that either way too little or 
way too much

information is conveyed. Balancing this is the subject of constant practice,
even with the experienced.

Unfortunately, FAI has a extended learning curve - and sometimes a bit 
of IT blood,

admin sweat and tears. But in the end it works as a real cool solution.

Best Regards

Jens

> waiting for your analysis about this and further answers.
> regards,

Done. 

Am 12.03.2021 um 10:08 schrieb Jens Abromeit:


Hello Nilesh & all

now a version 1.1 text-only reply... 

Is this your first auto installation experience with FAI?
For what purpose do you want to use it?

Could you please add some more details?
For example send the according lines from the error.log from the 
target host and the

wanted partion layout on the target host disk

If try to login via SSH or make a local login via console with the 
running FAI-CD and go the according $target/var/log/fai[hostname]/last 
directory


Enter

*    ls -la*

Example output: [ replaced picture with plain text ]

root@newlife:/var/log/fai/newlife/last# ls -la
total 884
drwxr-x--- 2 root adm    4096 Jun  2  2019 .
drwxr-xr-x 3 root root   4096 Jun  2  2019 ..
-rw-r--r-- 1 root root 16 Jun  2  2019 additional.var
-rw-r--r-- 1 root root    469 Jun  2  2019 boot.log
-rw-r--r-- 1 root root    709 Jun  2  2019 debconf.data
-rw-r--r-- 1 root root    200 Jun  2  2019 disk_var.sh
-rw-r--r-- 1 root root  99337 Jun  2  2019 dmesg.log
-rw-r--r-- 1 root root  11156 Jun  2  2019 error.log
-rw-r--r-- 1 root root 72 Jun  2  2019 FAI_CLASSES
-rw-r--r-- 1 root root 590560 Jun  2  2019 fai.log
-rw-r--r-- 1 root root    728 Jun  2  2019 fai-monitor.log
-rw-r--r-- 1 root root    136 Jun  2  2019 fcopy.log
-rw-r--r-- 1 root root  32826 Jun  2  2019 format.log
-rw-r--r-- 1 root root    469 Jun  2  2019 fstab
-rw-r--r-- 1 root root  15075 Jun  2  2019 shell.log
-rw-r--r-- 1 root root  93594 Jun  2  2019 software.log
-rw-r--r-- 1 root root    508 Jun  2  2019 status.log
-rw-r--r-- 1 root root   2120 Jun  2  2019 variables.log


and

egrep -i "efi|grub" error.log

and

head -30 format.log

Example output: [ replaced picture with plain text ]

root@newlife:/var/log/fai/newlife/last#  head -30 format.log

disklist: sda
Starting setup-storage 2.2
Using config file: /var/lib/fai/config/disk_config/FAIBASE
Input was:
# example of new config file for setup-storage
#
#        

#disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid

#primary /  2G-50G   ext4  rw,noatime,errors=remount-ro
#logical swap   200-10G  swap  sw
#logical /home  100- ext4  rw,noatime,nosuid,nodev
createopts="-L home -m 1" tuneopts="-c 0 -i 0"

disk_config disk1 disklabel:gpt-bios fstabkey:uuid

primary /  4G  ext4  rw,noatime,errors=remount-ro
primary -  6G    -   -

disk_config lvm
vg vg_1 disk1.2
vg_1-lv_0_1    swap   1G swap  sw
vg_1-lv_0_2    /tmp   1G  ext4  rw,noatime,nosuid,nodev
createopts="-L tmp -m 0" tuneopts="-c 0 -i 

Re: About Cannot find grub.cfg [ more input needed | version 1.1 text only ]

2021-03-12 Diskussionsfäden Jens Abromeit

Hello Nilesh & all

now a version 1.1 text-only reply... 

Is this your first auto installation experience with FAI?
For what purpose do you want to use it?

Could you please add some more details?
For example send the according lines from the error.log from the target 
host and the

wanted partion layout on the target host disk

If try to login via SSH or make a local login via console with the 
running FAI-CD and go the according $target/var/log/fai[hostname]/last 
directory


Enter

*    ls -la*

Example output: [ replaced picture with plain text ]

   root@newlife:/var/log/fai/newlife/last# ls -la
   total 884
   drwxr-x--- 2 root adm    4096 Jun  2  2019 .
   drwxr-xr-x 3 root root   4096 Jun  2  2019 ..
   -rw-r--r-- 1 root root 16 Jun  2  2019 additional.var
   -rw-r--r-- 1 root root    469 Jun  2  2019 boot.log
   -rw-r--r-- 1 root root    709 Jun  2  2019 debconf.data
   -rw-r--r-- 1 root root    200 Jun  2  2019 disk_var.sh
   -rw-r--r-- 1 root root  99337 Jun  2  2019 dmesg.log
   -rw-r--r-- 1 root root  11156 Jun  2  2019 error.log
   -rw-r--r-- 1 root root 72 Jun  2  2019 FAI_CLASSES
   -rw-r--r-- 1 root root 590560 Jun  2  2019 fai.log
   -rw-r--r-- 1 root root    728 Jun  2  2019 fai-monitor.log
   -rw-r--r-- 1 root root    136 Jun  2  2019 fcopy.log
   -rw-r--r-- 1 root root  32826 Jun  2  2019 format.log
   -rw-r--r-- 1 root root    469 Jun  2  2019 fstab
   -rw-r--r-- 1 root root  15075 Jun  2  2019 shell.log
   -rw-r--r-- 1 root root  93594 Jun  2  2019 software.log
   -rw-r--r-- 1 root root    508 Jun  2  2019 status.log
   -rw-r--r-- 1 root root   2120 Jun  2  2019 variables.log


and

egrep -i "efi|grub" error.log

and

head -30 format.log

Example output: [ replaced picture with plain text ]

root@newlife:/var/log/fai/newlife/last#  head -30 format.log

   disklist: sda
   Starting setup-storage 2.2
   Using config file: /var/lib/fai/config/disk_config/FAIBASE
   Input was:
   # example of new config file for setup-storage
   #
   #        

   #disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid

   #primary /  2G-50G   ext4  rw,noatime,errors=remount-ro
   #logical swap   200-10G  swap  sw
   #logical /home  100- ext4  rw,noatime,nosuid,nodev
   createopts="-L home -m 1" tuneopts="-c 0 -i 0"

   disk_config disk1 disklabel:gpt-bios fstabkey:uuid

   primary /  4G  ext4  rw,noatime,errors=remount-ro
   primary -  6G    -   -

   disk_config lvm
   vg vg_1 disk1.2
   vg_1-lv_0_1    swap   1G swap  sw
   vg_1-lv_0_2    /tmp   1G  ext4  rw,noatime,nosuid,nodev
   createopts="-L tmp -m 0" tuneopts="-c 0 -i 0"
   vg_1-lv_1_1    /home  500  ext4  rw,noatime,nosuid,nodev
   createopts="-L home -m 1" tuneopts="-c 0 -i 0"
   vg_1-lv_1_2    /usr   1500 ext4  rw,noatime,nodev   createopts="-L usr"
   vg_1-lv_1_3    /var   1G  ext4  rw,noatime createopts="-L
   var -m 5" tuneopts="-c 0 -i 0"
   (CMD) parted -s /dev/sda unit TiB print 1> /tmp/WiOid0Jrkw 2>
   /tmp/ugCX9FytVM
   Executing: parted -s /dev/sda unit TiB print
   (STDOUT) Model: VMware, VMware Virtual S (scsi)
   (STDOUT) Disk /dev/sda: 0.01TiB

and then submit the output from the commands above together with your 
request.


If you have more stuff to submit please use pastebin or something similiar!

Best Regards

Jens


Am 11.03.2021 um 18:15 schrieb Nilesh Wagh:


I am trying to make. iso file and trying to install it on my system 
using FAI...
But while installing it... There is an error about grub_efi/10-setup 
getting failed...
Please do provide me an solution on this that i can do .ISO file 
installation using FAI...

--
Mail ist S/MIME signiert. root Zertifikate unter:
https://www.volksverschluesselung.de/zertifikate.php


--
Mail ist S/MIME signiert. root Zertifikate unter:
https://www.volksverschluesselung.de/zertifikate.php



smime.p7s
Description: S/MIME Cryptographic Signature


About Cannot find grub.cfg

2021-03-11 Diskussionsfäden Nilesh Wagh
I am trying to make. iso file and trying to install it on my system using
FAI...
But while installing it... There is an error about grub_efi/10-setup
getting failed...
Please do provide me an solution on this that i can do .ISO file
installation using FAI...