Bug 255281 - rpm falsely reports successfull install on read-only /boot
Summary: rpm falsely reports successfull install on read-only /boot
Keywords:
Status: CLOSED DUPLICATE of bug 186945
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-26 19:01 UTC by Dean Mander
Modified: 2014-01-21 22:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-13 19:10:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dean Mander 2007-08-26 19:01:29 UTC
Description of problem:

Request for more robust kernel .rpm file.

Today, an upgrade of the kernel-package on a system with read-only /boot
partition, renders the system unbootable.

You can successfully (according to yum) install the kernel package on such a
read-only /boot. It will update the grub.conf and next boot it won't find the
non-installed kernel (when using the default grub choice) --> can't startup.

Version-Release number of selected component (if applicable):
kernel (all)

How reproducible:
always when kernel update available


Steps to Reproduce:
1. mount /boot as read-only
2. yum update kernel
3.
  
Actual results:
$ yum update kernel
<snip>
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kernel                       ######################### [1/1]
error: unpacking of archive failed on file
/boot/System.map-2.6.22.4-65.fc7;46cfe671: cpio: open

Installed: kernel.x86_64 0:2.6.22.4-65.fc7
Complete!

Expected results:
I would expect the package to check if /boot is writable, 
if no, a transaction check error and a failure of the package update.

Additional info:

Comment 1 Jarod Wilson 2007-08-27 02:52:05 UTC
> You can successfully (according to yum)

That would suggest a yum bug, not a kernel bug.

> install the kernel package on such a
> read-only /boot. It will update the grub.conf and next boot it won't find the
> non-installed kernel (when using the default grub choice) --> can't startup.

Erm, grub.conf is on /boot so how would it have been updated if /boot was read-only?


Comment 2 Panu Matilainen 2007-08-27 17:27:25 UTC
This is a dupe of bug 186945 except that's against devel and this for F7 - yum
can catch this error if it wants to and IIRC yum 3.2.3 already does.

Comment 3 Jeremy Katz 2007-09-13 19:10:59 UTC

*** This bug has been marked as a duplicate of 186945 ***


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