Project

General

Profile

Bug #28240

Install FreeBSD GPT zfs loader instead of grub

Added by William Grzybowski over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
Critical
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 150, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 904, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 872, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 502, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/boot.py", line 138, in attach
    await self.install_grub(boottype, dev)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/boot.py", line 96, in install_grub
    await run(*args, check=False)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/utils.py", line 61, in run
    proc = await asyncio.create_subprocess_exec(*args, **kwargs)
  File "/usr/local/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec
    stderr=stderr, **kwds)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1191, in subprocess_exec
    bufsize, **kwargs)
  File "/usr/local/lib/python3.6/asyncio/unix_events.py", line 191, in _make_subprocess_transport
    **kwargs)
  File "/usr/local/lib/python3.6/asyncio/base_subprocess.py", line 39, in __init__
    stderr=stderr, bufsize=bufsize, **kwargs)
  File "/usr/local/lib/python3.6/asyncio/unix_events.py", line 697, in _start
    universal_newlines=False, bufsize=bufsize, **kwargs)
  File "/usr/local/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/sbin/grub-install': '/usr/local/sbin/grub-install'

Related issues

Related to FreeNAS - Bug #28210: Run boot.attach as a jobDone2018-02-052018-02-12

Associated revisions

Revision 45782d24 (diff)
Added by William Grzybowski over 1 year ago

fix(boot): install freebsd GPT zfs loader instead of grub Ticket: #28240

Revision 282a49df (diff)
Added by William Grzybowski over 1 year ago

fix(boot): pep8 and missing imports Ticket: #28240

Revision ae42f9cc (diff)
Added by William Grzybowski over 1 year ago

fix(boot): dev to install bootcode Ticket: #28240

Revision fb6edf93 (diff)
Added by William Grzybowski over 1 year ago

fix(boot): install freebsd GPT zfs loader instead of grub Ticket: #28240

Revision 3ad9a758 (diff)
Added by William Grzybowski over 1 year ago

fix(boot): pep8 and missing imports Ticket: #28240

Revision 076e5d0c (diff)
Added by William Grzybowski over 1 year ago

fix(boot): dev to install bootcode Ticket: #28240

History

#1 Updated by William Grzybowski over 1 year ago

  • Related to Bug #28210: Run boot.attach as a job added

#2 Updated by William Grzybowski over 1 year ago

  • Status changed from Not Started to Done
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#3 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1

#4 Updated by Dru Lavigne over 1 year ago

  • Subject changed from boot.attach is broken since grub change to Install FreeBSD GPT zfs loader instead of grub

#5 Updated by Dru Lavigne over 1 year ago

  • Status changed from Done to Ready for Testing

#6 Updated by Eric Turgeon over 1 year ago

  • Status changed from Ready for Testing to Passed Testing
  • Severity set to New
  • Needs QA changed from Yes to No

I have tested on BIOS system and everything looked fine.

#7 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF