amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
524 stars 39 forks source link

[Bug] - grub2-common: failed to get canonical path of `fuse-overlayfs' #430

Open daniejstriata opened 1 year ago

daniejstriata commented 1 year ago

Describe the bug After installing "Development Tools" in my Toolbox container: yum group install "Development Tools" -y I noticed an error in the output from DNF relating to grub2-common:

  Running scriptlet: grub2-common-1:2.06-61.amzn2023.0.7.noarch                                                                                                             170/170 
grub2-probe: error: failed to get canonical path of `fuse-overlayfs'.
warning: %posttrans(grub2-common-1:2.06-61.amzn2023.0.7.noarch) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package grub2-common

I'm unsure if this is an issue that will break anything, I trust that I'm not dependant on grub from within a container.

Additional context I am not sure if this issue relates to running AL2023 from within Toolbox.

ozbenh commented 1 year ago

This is caused by a combination of issues. One is grub2 gets pulled into "Development Tools" due to an unfortunate chain of dependencies (you can exclude it, it's an optional, I think it comes from nss bringing crypto-policies-scripts which in turns brings grubby which brings grub2-common. I want to eventually cut some of that out, and I suggest you add a -x grubby to your dnf command for sanity (and to avoid bringing in so much cruft), but it's also not going to break anything afaik.

The error in the scriptlet is a result of grub post installation scripts not figuring things out in a container and is I believe harmless

daniejstriata commented 1 year ago

@ozbenh Thanks. Your suggestion to exclude grubby worked for me.