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 `<top (required)>'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:313:in `eval'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:313:in `run_client'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:206:in `call_builtin'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:206:in `call_builtin_wrapper'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:195:in `CallFunction'
/usr/lib/YaST2/bin/y2start:58:in `<main>'
2018-10-27 12:32:15 <3> cloud(29399) [Ruby] yast/wfm.rb:276 Internal error.
Please report a bug report with logs.
Run save_y2logs to get complete logs.
Details: Operation not permitted @ rb_sysopen - /etc/default/grub
Caller:  /usr/share/YaST2/lib/yast2/target_file.rb:39:in `write'
2018-10-27 12:32:15 <1> cloud(29399) [ui] YPushButton.cc(setFunctionKey):202
Guessing button role YOKButton for YPushButton "OK" at 0x7efc2403c200 from
function key F10
2018-10-27 12:33:02 <1> cloud(29399) [Interpreter] bin/y2start:58 Called YaST
client returned.
2018-10-27 12:33:02 <1> cloud(29399) [ncurses] YNCursesUI.cc(~YNCursesUI):115
Stop YNCursesUI
2018-10-27 12:33:02 <1> cloud(29399) [ncurses] NCurses.cc(~NCurses):145
Shutdown NCurses...
2018-10-27 12:33:02 <1> cloud(29399) [ncurses] NCurses.cc(~NCurses):164 NCurses
down
2018-10-27 12:33:02 <1> cloud(29399) [Y2Ruby] binary/YRuby.cc(~YRuby):117
Shutting down ruby interpreter.
2018-10-27 12:33:02 <1> cloud(28811) [ncurses] NCurses.cc(RedirectToLog):565
isatty(stderr)yes
2018-10-27 12:33:02 <1> cloud(28811) [ncurses] NCurses.cc(RedirectToLog):574
isatty(stdout)yes
2018-10-27 12:33:02 <1> cloud(28811) [Ruby] clients/menu.rb:303 Got 0 from
/sbin/yast bootloader  >&2
2018-10-27 12:33:59 <1> cloud(28811) [Interpreter] bin/y2start:58 Called YaST
client returned.
2018-10-27 12:33:59 <1> cloud(28811) [ncurses] YNCursesUI.cc(~YNCursesUI):115
Stop YNCursesUI
2018-10-27 12:33:59 <1> cloud(28811) [ncurses] NCurses.cc(~NCurses):145
Shutdown NCurses...
2018-10-27 12:33:59 <1> cloud(28811) [ncurses] NCurses.cc(~NCurses):164 NCurses
down
2018-10-27 12:33:59 <1> cloud(28811) [Y2Ruby] binary/YRuby.cc(~YRuby):117
Shutting down ruby interpreter.

Let me know if you need any other information.

Thanks.

Mark


You are receiving this mail because: