You are not logged in.

#1 2024-02-24 14:57:12

paqob
Member
Registered: 2024-02-24
Posts: 6

archinstall failed to install grub

archinstall fails to install grub

notebook is an old AMD with BIOS and 128GB SATA SSD

partitioning was set to automatic

install.log:

Installing packages: ['grub']
kernel parameters: zswap.enabled=0 rootfstype=ext4
GRUB boot partition: /dev/sda1
GRUB boot partition: /dev/sda1
Failed to install GRUB boot on /dev/sda1: ['/usr/bin/arch-chroot', '/mnt', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/sda'] exited with abnormal exit code [1]: sed root_dev `hostdisk//dev/sda' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/sda,msdos1'.
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/archinstall/lib/installer.py", line 981, in _add_grub_bootloader
    SysCommand(command + add_options, peek_output=True)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/general.py", line 365, in __init__
    self.create_session()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/general.py", line 414, in create_session
    with SysCommandWorker(
  File "/usr/lib/python3.11/site-packages/archinstall/lib/general.py", line 197, in __exit__
    raise SysCallError(
archinstall.lib.exceptions.SysCallError: ['/usr/bin/arch-chroot', '/mnt', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/sda'] exited with abnormal exit code [1]: sed root_dev `hostdisk//dev/sda' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/sda,msdos1'.
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/archinstall/__init__.py", line 329, in run_as_a_module
    main()
  File "/usr/lib/python3.11/site-packages/archinstall/__init__.py", line 324, in main
    importlib.import_module(mod_name)
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/archinstall/scripts/guided.py", line 256, in <module>
    perform_installation(archinstall.storage.get('MOUNT_POINT', Path('/mnt')))
  File "/usr/lib/python3.11/site-packages/archinstall/scripts/guided.py", line 118, in perform_installation
    with Installer(
  File "/usr/lib/python3.11/site-packages/archinstall/lib/installer.py", line 109, in __exit__
    raise exc_val
  File "/usr/lib/python3.11/site-packages/archinstall/scripts/guided.py", line 159, in perform_installation
    installation.add_bootloader(
  File "/usr/lib/python3.11/site-packages/archinstall/lib/installer.py", line 1238, in add_bootloader
    self._add_grub_bootloader(boot_partition, root_partition, efi_partition, uki_enabled)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/installer.py", line 983, in _add_grub_bootloader
    raise DiskError(f"Failed to install GRUB boot on {boot_partition.dev_path}: {err}")
archinstall.lib.exceptions.DiskError: Failed to install GRUB boot on /dev/sda1: ['/usr/bin/arch-chroot', '/mnt', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/sda'] exited with abnormal exit code [1]: sed root_dev `hostdisk//dev/sda' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/sda,msdos1'.
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.


Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

is it possible to finish the remaining steps manually?

(lxde would be prefered to become wm)

Offline

#2 2024-02-24 15:57:44

paqob
Member
Registered: 2024-02-24
Posts: 6

Re: archinstall failed to install grub

SOLVED by creating an empty GPT table with fdisk and re-run the installer

Offline

Board footer

Powered by FluxBB