rpi-imager icon indicating copy to clipboard operation
rpi-imager copied to clipboard

[BUG]: Can't flash any image

Open komorebinator opened this issue 9 months ago • 5 comments

What happened?

Hi! Yeah, It's a known issue (https://github.com/raspberrypi/rpi-imager/issues/396), just letting you know it's still there. Or please update your repo description and replace "Linux" with "Ubuntu" as the only distro supported.

Thank you!

Image

Version

1.8.5

What host operating system were you using?

Fedora Silverblue

Host OS Version

41.20241220.0

Selected OS

Fedora

Which Raspberry Pi Device are you using?

Raspberry Pi 5

What kind of storage device are you using?

microSD Card in an internal reader

OS Customisation

  • [ ] Yes, I was using OS Customisation when the bug occurred.

komorebinator avatar Mar 24 '25 12:03 komorebinator

Version

1.9.2 (Default)

That's funny, your screenshot says "Raspberry Pi Imager v1.8.5" ?

Host OS Version

Fedora

There are a several 3rd-party "re-packagings" of Raspberry Pi Imager for Linux. Could you please clarify exactly where you downloaded Raspberry Pi Imager from (and in what format), and how you installed it on Fedora? Thanks.

EDIT: And do you have SELinux or AppArmor enabled?

lurch avatar Mar 24 '25 13:03 lurch

I tried several versions of the package, one is from flathub (unofficial), one is an official release installed in the debian distrobox. The problem is caused by selinux, however I never had any issues with any other image writer on my system. I can confirm temporary disabling selinux is a quick fix, but I'd never imagine average user doing so, so I believe it's better to provide at least a workaround. Temporary disabling selinux is not a big deal, but it takes more time to figure out the source of the problem.

komorebinator avatar Mar 24 '25 15:03 komorebinator

The problem is caused by selinux...

Right, see https://github.com/raspberrypi/rpi-imager/issues/396#issuecomment-1930312124

lurch avatar Mar 24 '25 15:03 lurch

Yeah, that's what I'm talking about. The page clearly says "Linux", and selinux is a kernel feature. There's a huge difference between supporting linux and supporting a single distro.

Image

komorebinator avatar Mar 24 '25 15:03 komorebinator

There's a huge difference between supporting linux and supporting a single distro.

I've obviously not done an extensive survey, but I'd assume that there's more than one Linux distro that doesn't enable SELinux by default? 🙃

lurch avatar Mar 24 '25 15:03 lurch

Closing this one as 'Won't fix'.

Fedora and RHEL have long taken a particularly aggressive security posture - enforcing SELinux out of the box. In one sense, that's to be commended.

However, I cannot dedicate time to supporting specific distros and their baroque requirements. I am, however, happy to accept a PR for a SELinux file.

Finally, I absolutely cannot support third-party distributions of the application - it's too onerous to track the various modifications and unique failures these may introduce.

tdewey-rpi avatar Apr 30 '25 10:04 tdewey-rpi