[Bug 1096355] On upgrade , Inappropriate ioctl for device
https://bugzilla.suse.com/show_bug.cgi?id=1096355 https://bugzilla.suse.com/show_bug.cgi?id=1096355#c4 Brad Bendily <brad.bendily@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brad.bendily@suse.com --- Comment #4 from Brad Bendily <brad.bendily@suse.com> --- (In reply to Stefan Hundhammer from comment #1)
I admit that I just found this with a Google search, but it sounds very much like the symptoms on your machine:
https://www.reddit.com/r/openSUSE/comments/7y7l6m/ tw_updating_bootloader_failed/
"When I run grub2-mkconfig the error: "ERROR: failed to lookup root id: Inappropriate ioctl for device" Happens right after "### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###"
I recently built a VM that had this error. I took a Leap 15.1 JEOS image and loaded it as a custom image into a Digital Ocean Droplet. It seemed to work fine and I did not notice if I had this error from the start. I recently upgraded the 15.1 to 15.2 and noticed the kernel was not being updated. The kernel was there, but grub wasn't being updated. Manually running the grub2-mkconfig command showed the same error: ERROR: failed to lookup root id: Inappropriate ioctl for device
I also recently noticed all of my snapshots have gone missing from /.snapshots and snapper reflects that.
Solution: the mountpoint for the @/.snapshots subvolume was missing from /etc/fstab. Correcting that solves the issue."
The JEOS image seems to not have snapper enabled by default, so I assumed this entry was not needed, it was not in the fstab. However, I tried the step mentioned here, added ./snapshots to fstab and now the grub2-mkconfig command works with no more ioctl errors, the grub.cfg file was updated with the new kernel entries and I could boot into the new kernel. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com