Magellan Linux

Diff of /tags/grubby-8_37/new-kernel-pkg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2051 by niro, Wed Feb 20 13:57:53 2013 UTC revision 2237 by niro, Mon Oct 21 13:22:08 2013 UTC
# Line 206  install() Line 206  install()
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)
209     if [[ -z $rootdevice ]]
210     then
211     rootdevice=$(grep -o -P "(?<=root=)\S+" /proc/cmdline)
212     fi
213    
214   if [[ -n ${mbkernel} ]] && [[ -n ${cfgLilo} ]] && [[ ${liloFlag} != elilo ]]   if [[ -n ${mbkernel} ]] && [[ -n ${cfgLilo} ]] && [[ ${liloFlag} != elilo ]]
215   then   then
# Line 796  fi Line 800  fi
800  # add dracut i18n, keyboard and plymouth kernel args if requested  # add dracut i18n, keyboard and plymouth kernel args if requested
801  if [[ -n ${dracut} ]] || [[ -n ${adddracutargs} ]]  if [[ -n ${dracut} ]] || [[ -n ${adddracutargs} ]]
802  then  then
803   [ -r /etc/conf.d/keymap ] && . /etc/conf.d/keymap   if [ -r /etc/vconsole.conf ]
  [ -r /etc/conf.d/consolefont ] && . /etc/conf.d/consolefont  
   
  if [[ -n ${KEYMAP} ]]  
804   then   then
805   kernargs="${kernargs} KEYTABLE=${KEYMAP}"   . /etc/vconsole.conf
806    
807     for i in SYSFONT SYSFONTACM UNIMAP KEYTABLE
808     do
809     val=$(eval echo \$$i)
810     [[ -n ${val} ]] && kernargs="${kernargs} ${i}=${val}"
811     done
812     else
813     if [ -r /etc/conf.d/consolefont ]
814     then
815     . /etc/conf.d/consolefont
816    
817     if [[ -n ${CONSOLEFONT} ]]
818     then
819     kernargs="${kernargs} SYSFONT=${CONSOLEFONT}"
820     fi
821     fi
822    
823     if  [ -r /etc/conf.d/keymap ]
824     then
825     . /etc/conf.d/keymap
826    
827     if [[ -n ${KEYMAP} ]]
828     then
829     kernargs="${kernargs} KEYTABLE=${KEYMAP}"
830     fi
831     fi
832   fi   fi
833    
834   if [[ -n ${CONSOLEFONT} ]]   if [ -r /etc/locale.conf ]
835   then   then
836   kernargs="${kernargs} SYSFONT=${CONSOLEFONT}"   . /etc/locale.conf
837    
838     if [[ -n ${LANG} ]]
839     then
840     kernargs="${kernargs} LANG=${LANG}"
841     fi
842   fi   fi
843  fi  fi
844    

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