Diff of /tags/grubby-8_34/new-kernel-pkg
Parent Directory | Revision Log | Patch
revision 2237 by niro, Mon Oct 21 13:22:08 2013 UTC | revision 2238 by niro, Mon Oct 21 13:22:57 2013 UTC | |
---|---|---|
# | Line 205 install() | Line 205 install() |
205 | fi | fi |
206 | ||
207 | # get the root filesystem to use | # get the root filesystem to use |
208 | rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab) | rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab 2>/dev/null) |
209 | if [[ -z $rootdevice ]] | if [[ -z $rootdevice ]] |
210 | then | then |
211 | rootdevice=$(grep -o -P "(?<=root=)\S+" /proc/cmdline) | rootdevice=$(grep -o -P "(?<=root=)\S+" /proc/cmdline) |
|