View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004508 | CentOS-5 | mkinitrd | public | 2010-09-13 10:58 | 2014-05-10 09:04 |
Reporter | debugitu | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.5 | ||||
Target Version | Fixed in Version | ||||
Summary | 0004508: unable to boot after kernel update | ||||
Description | After updating the kernel the system does not boot properly and stops with "unable to mount root" message. Tracing back to the origin, the mkinitrd does not properly filter out unsupported mount options for the mkrootdev. That is the case for example when the mount option for the root file system in the /etc/fstab file is "mand" instead of the default "defaults". | ||||
Additional Information | Easy to reproduce. Other than the "mand" mount options may also create the same problem. Scope extension of the problem: Preferable to filter based on what is supported by mkrootdev instead of what has been reported as troublemaker. (for example earlier it was the "rw" option). I tested only with CentOS 5.5. Other OS versions and Redhat, Fedora may have the same problem as well. | ||||
Tags | No tags attached. | ||||
mkinitrd.patch (1,407 bytes)
--- mkinitrd.orig 2013-10-08 14:03:18.000000000 +0200 +++ mkinitrd 2014-05-01 15:11:08.000000000 +0200 @@ -1375,6 +1375,10 @@ -e 's/_netdev//' \ -e 's/,_rnetdev//' \ -e 's/_rnetdev//' \ + -e 's/,mand,/,/' \ + -e 's/^mand,//' \ + -e 's/,mand$//' \ + -e 's/^mand$/defaults/' \ -e 's/,r[ow],$//' \ -e 's/,r[ow],/,/' \ -e 's/^r[ow]$/defaults/' \ @@ -1399,6 +1403,10 @@ -e 's/_netdev//' \ -e 's/,_rnetdev//' \ -e 's/_rnetdev//' \ + -e 's/,mand,/,/' \ + -e 's/^mand,//' \ + -e 's/,mand$//' \ + -e 's/^mand$/defaults/' \ -e 's/,r[ow],$//' \ -e 's/,r[ow],/,/' \ -e 's/^r[ow]$/defaults/' \ |
|
The attached patch solves the problem, but each time a new mkinitrd comes out I have to patch it. Is it possible to include this into the main distribution? That way everybody may benefit out of that as well. | |