http://bugzilla.opensuse.org/show_bug.cgi?id=1113618
Bug ID: 1113618
Summary: grub2 install fail /etc/default/grub_installdevice:
permission denied
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 15.0
Hardware: x86-64
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Bootloader
Assignee: jsrain@suse.com
Reporter: petersenmde@gmail.com
QA Contact: jsrain@suse.com
Found By: ---
Blocker: ---
While performing a zypper up on my opensuse leap 15.0 Linode instance, I've
gotten the following error:
Executing %posttrans script 'grub2-i386-pc-2.02-lp150.13.7.1.x86_64.rpm'
..........................................................<40%>===============================================================================================[/]
Output of grub2-i386-pc-2.02-lp150.13.7.1.x86_64.rpm %posttrans script:
update-bootloader: 2018-10-27 12:16:19 <3> update-bootloader-2294
run_command.294: '/usr/lib/bootloader/grub2/install' failed with exit code 1,
output:
<<<<<<<<<<<<<<<<
target = i386-pc
/etc/default/grub_installdevice: permission denied
>>>>>>>>>>>>>>>
So I opened yast2 bootloader, changed the timeout, and select OK to write the
changes, I get this error:
2018-10-27 12:32:15 <3> cloud(29399) [Ruby] yast/wfm.rb:253 Client
/usr/share/YaST2/clients/bootloader.rb failed with 'Operation not permitted @
rb_sysopen - /etc/default/grub' (Errno::EPERM).
Backtrace:
/usr/share/YaST2/lib/yast2/target_file.rb:39:in `write'
/usr/share/YaST2/lib/yast2/target_file.rb:39:in `write'
/usr/lib64/ruby/gems/2.5.0/gems/cfa-0.6.4/lib/cfa/base_model.rb:43:in `save'
/usr/lib64/ruby/gems/2.5.0/gems/cfa_grub2-1.0.1/lib/cfa/grub2/default.rb:43:in
`save'
/usr/share/YaST2/lib/bootloader/grub2base.rb:99:in `write'
/usr/share/YaST2/lib/bootloader/grub2.rb:58:in `write'
/usr/share/YaST2/modules/Bootloader.rb:266:in `Write'
/usr/share/YaST2/lib/bootloader/write_dialog.rb:18:in `run'
/usr/share/YaST2/lib/bootloader/main_dialog.rb:48:in `block in run'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/builtins.rb:546:in `eval'
/usr/share/YaST2/modules/Sequencer.rb:261:in `WS_run'
/usr/share/YaST2/modules/Sequencer.rb:333:in `block in Run'
/usr/share/YaST2/modules/Sequencer.rb:325:in `loop'
/usr/share/YaST2/modules/Sequencer.rb:325:in `Run'
/usr/share/YaST2/lib/bootloader/main_dialog.rb:67:in `run'
/usr/share/YaST2/clients/bootloader.rb:45:in `GuiHandler'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/fun_ref.rb:33:in `call'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/fun_ref.rb:33:in `call'
/usr/share/YaST2/modules/CommandLine.rb:1517:in `Run'
/usr/share/YaST2/clients/bootloader.rb:36:in `main'
/usr/share/YaST2/clients/bootloader.rb:53:in `