Bug 464750 - RFE: On kernel install /boot status should be checked
Summary: RFE: On kernel install /boot status should be checked
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-30 08:17 UTC by Piergiorgio Sartor
Modified: 2009-11-27 12:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-25 08:31:32 UTC
Type: ---


Attachments (Terms of Use)

Description Piergiorgio Sartor 2008-09-30 08:17:35 UTC
Description of problem:
Well, this is more an RFE than a problem, albeit sometimes it is a problem...
I've the /boot partition, for several reasons, set to "ro" (someone recommends even not to auto-mount it). 
When a kernel install/update/remove occurs, sometimes I forgot to set the /boot to "rw" before starting the operations, with obvious results...

It would be nice, if possible, to check /boot as first operation during kernel install/update/remove and, eventually, bail out with an error, before doing anything else.

Thanks a lot in advance.

pg

Comment 1 Dave Jones 2008-10-17 23:37:21 UTC
This should be done by the package manager if at all.

Comment 2 Piergiorgio Sartor 2009-02-20 12:39:41 UTC
(In reply to comment #1)
> This should be done by the package manager if at all.

I think you might be right.

One other potential use case is to have /usr mounted "ro".

pg

Comment 3 Panu Matilainen 2009-11-25 08:31:32 UTC
Fixed in rpm-4.7.2 in rawhide now, install attempt on read-only filesystems now errors out early as it should.

Comment 4 Piergiorgio Sartor 2009-11-27 09:22:36 UTC
Hi,

thanks for the update.

I've got anyway one question.

What happens, like in case of kernel install/update, where something goes in /boot, something else in /lib/modules and other in /usr, if the different folders belong to different mount points with different rw/ro permissions?

My case would be (for the kernel):

/boot ro
/lib/modules rw
/usr ro (formerly rw)

Does "rpm" check all the folders _before_ installing anything?
Or succeeding in /lib/modules will make it assume the rest is OK? In the hypothesis /lib/modules is the first folder used.

Thanks again,

bye,

pg

Comment 5 Panu Matilainen 2009-11-27 12:41:51 UTC
Obviously all filesystems are checked and must have enough room for install to even start. This has always been the case, but until now read-only filesystems were not handled correctly.


Note You need to log in before you can comment on or make changes to this bug.