View Issue Details

IDProjectCategoryView StatusLast Update
0004508CentOS-5mkinitrdpublic2014-05-10 09:04
Reporterdebugitu 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version5.5 
Target VersionFixed in Version 
Summary0004508: unable to boot after kernel update
DescriptionAfter 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 InformationEasy 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.
TagsNo tags attached.

Activities

debugitu

debugitu

2014-05-09 14:23

reporter  

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/'	\
mkinitrd.patch (1,407 bytes)
debugitu

debugitu

2014-05-09 14:25

reporter   ~0019745

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.

Issue History

Date Modified Username Field Change
2010-09-13 10:58 debugitu New Issue
2014-05-09 14:23 debugitu File Added: mkinitrd.patch
2014-05-09 14:25 debugitu Note Added: 0019745
2014-05-10 09:04 tigalch Summary unable too boot after kernel update => unable to boot after kernel update