RPi-Distro / repo

Issue tracking for the archive.raspberrypi.com repo
37 stars 1 forks source link

apt upgrade fails on /boot being mounted ro. #183

Closed gmos closed 3 years ago

gmos commented 4 years ago

If apt upgrade wants to upgrade a bootloader or kernel on /boot it fails because /boot is normally mounted ro. It is easily fixable by remounting /boot rw and then do an apt --fix-broken install, but it should not fail during the upgrade.apt upgrade This happened last with upgrade from kernel 1.20200601-1 to kernel 1.20200717-1. But also with a previous upgrade.

Some info: PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)"

This is on a Pi Zero W.

XECDesign commented 4 years ago

/boot is normally mounted ro.

It certainly shouldn't be. I don't know what the expected behaviour would be if you're trying to write files to a read only file system, but failing seems like the right thing to do.

gmos commented 4 years ago

Indeed. So the bug is in apt or in the scripting of the kernel/bootloader upgrade. Apt/script should remount /boot in rw mode before the actual upgrade starts. As it did in the past.

Kind regards, Gijs Mos M: +31 653 939 920 (mobile device)

Op 20 jul. 2020 om 18:43 heeft XECDesign notifications@github.com het volgende geschreven:



/boot is normally mounted ro.

It certainly shouldn't be. I don't know what the expected behaviour would be if you're trying to write files to a read only file system, but failing seems like the right thing to do.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/RPi-Distro/repo/issues/183#issuecomment-661171220, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALUWEGCJ6WIOILJALKQ2XLR4RXZXANCNFSM4PCLME6Q.

XECDesign commented 4 years ago

By default, /boot is not mounted read only though. If the user has decided to make it read only for some reason, it's not up to a package maintainer to mess with that.

gmos commented 4 years ago

Then that may be the problem. I’m pretty sure I have started this card with a vanilla install of Raspbian Buster Lite a month or two ago. And that I never have changed the mounting mode of the boot partition myself. But I’ll have to set-up an SD card for a new Pi anyway. So I’ll get the latest official Buster Lite image an report back here how /boot ends up after a fresh install.

From: XECDesign notifications@github.com Sent: Tuesday, 21 July 2020 10:57 To: RPi-Distro/repo repo@noreply.github.com Cc: Gijs Mos gijs.mos@matanga.nl; Author author@noreply.github.com Subject: Re: [RPi-Distro/repo] apt upgrade fails on /boot being mounted ro. (#183)

By default, /boot is not mounted read only though. If the user has decided to make it read only for some reason, it's not up to a package maintainer to mess with that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/RPi-Distro/repo/issues/183#issuecomment-661728593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALUWEFZJLNKYICO3A5U57LR4VJ5DANCNFSM4PCLME6Q.

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.