Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 699327 Details for
Bug 817347
No root device in the grub2.cfg after kernel upgrade with an empty /etc/fstab
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix empty root device in case of an empty /etc/fstab
0001-Fix-empty-root-device-in-case-of-an-empty-etc-fstab.patch (text/plain), 1.06 KB, created by
Peter Lemenkov
on 2013-02-19 05:28:16 UTC
(
hide
)
Description:
Fix empty root device in case of an empty /etc/fstab
Filename:
MIME Type:
Creator:
Peter Lemenkov
Created:
2013-02-19 05:28:16 UTC
Size:
1.06 KB
patch
obsolete
>From 51231eafe7fc26f31c7b0ee96920cc301180f05d Mon Sep 17 00:00:00 2001 >From: Peter Lemenkov <lemenkov@gmail.com> >Date: Thu, 14 Feb 2013 21:41:58 +0400 >Subject: [PATCH 1/2] Fix empty root device in case of an empty /etc/fstab > >In this case we have the only option - to check for /proc/cmdline >which must contain a valid root device description. > >See rhbz #817347 for further details: > >https://bugzilla.redhat.com/817347 > >Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> >--- > new-kernel-pkg | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/new-kernel-pkg b/new-kernel-pkg >index 07f2e06..f0efc59 100755 >--- a/new-kernel-pkg >+++ b/new-kernel-pkg >@@ -165,6 +165,10 @@ install() { > > # get the root filesystem to use > rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab) >+ if [ "$rootdevice" = "" ]; >+ then >+ rootdevice=`grep -o -P "(?<=root=)\S+" /proc/cmdline` >+ fi > > if [ -n "$mbkernel" -a -n "$cfgLilo" -a "$liloFlag" != "elilo" ]; then > [ -n "$verbose" ] && echo "multiboot specified, not updating lilo.conf" >-- >1.8.1.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 817347
:
697317
| 699327 |
699328