Magellan Linux

Diff of /trunk/grubby/new-kernel-pkg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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)

Legend:
Removed from v.2237  
changed lines
  Added in v.2238