Magellan Linux

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

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

revision 2972 by niro, Thu Jun 30 10:17:00 2016 UTC revision 3004 by niro, Tue Jun 27 14:22:13 2017 UTC
# Line 155  mbkernel="${HYPERVISOR}" Line 155  mbkernel="${HYPERVISOR}"
155  mbargs="${HYPERVISOR_ARGS}"  mbargs="${HYPERVISOR_ARGS}"
156  adddracutargs=""  adddracutargs=""
157  addplymouthinitrd=""  addplymouthinitrd=""
158  DEBUGARG="systemd.debug"  DEBUGARG="systemd.log_level=debug systemd.log_target=kmsg"
159    
160  usage()  usage()
161  {  {
# Line 177  rungrubby() Line 177  rungrubby()
177   then   then
178   [[ ${MAKEDEBUG} != yes ]] && return 0   [[ ${MAKEDEBUG} != yes ]] && return 0
179   [[ -n ${verbose} ]] && echo "- First, making a debug entry."   [[ -n ${verbose} ]] && echo "- First, making a debug entry."
180   declare -x debugtitle=" with debugging"   if [[ ${ARCH} = s390 ]] || [[ ${ARCH} = s390x ]]
181     then
182     declare -x debugtitle="_with_debugging"
183     else
184     declare -x debugtitle=" with debugging"
185     fi
186   declare -x debugargs="${DEBUGARG}"   declare -x debugargs="${DEBUGARG}"
187   shift   shift
188   else   else
# Line 904  fi Line 909  fi
909    
910  if [[ ${ARCH} =~ armv[5|7].*l ]]  if [[ ${ARCH} =~ armv[5|7].*l ]]
911  then  then
912   if [ -d ${bootPrefix}/dtb-${version}/ ]   if [[ -z ${SHIPSDTB} ]] || [[ ${SHIPSDTB} != yes ]]
913   then   then
914   devtreedir="${bootPrefix}/dtb-${version}/"   if [[ -n ${dtbfile} ]] && [ -f ${bootPrefix}/dtb-${version}/${dtbfile} ]
  if [[ -n ${dtbfile} ]] && [ -f ${devtreedir}/${dtbfile} ]  
915   then   then
916   devtreefile="${devtreedir}/${dtbfile}"   devtreefile="${bootPrefix}/dtb-${version}/${dtbfile}"
917     [[ -n ${verbose} ]] && echo "devtreefile is ${devtreefile}"
918     elif [ -d ${bootPrefix}/dtb-${version}/ ]
919     then
920     devtreedir="${bootPrefix}/dtb-${version}/"
921     [[ -n ${verbose} ]] && echo "devtreedir is ${devtreedir}"
922   fi   fi
923   fi   fi
924  fi  fi
925  [[ -n ${verbose} ]] && echo "devtreedir is ${devtreedir}"  [[ -n ${verbose} ]] && echo "devtreedir is ${devtreedir}"
926    
927  # add dracut i18n, keyboard and plymouth kernel args if requested  # add dracut kernel args if requested
928  if [[ -n ${dracut} ]] || [[ -n ${adddracutargs} ]]  if [[ -n ${dracut} ]] && [[ -n ${adddracutargs} ]]
929  then   [ -r /etc/vconsole.conf ] && . /etc/vconsole.conf
930   if [ -r /etc/vconsole.conf ]   [ -r /etc/locale.conf ] && . /etc/locale.conf
931   then  
932   . /etc/vconsole.conf   while read opt rd_opt
933     do
934   for i in SYSFONT SYSFONTACM UNIMAP KEYTABLE   [ -n "${!opt}" ] && kernargs="$kernargs $rd_opt=\"${!opt}\""
935   do   done <<< 'KEYMAP rd.vconsole.keymap
936   val=$(eval echo \$$i)   FONT rd.vconsole.font
937   [[ -n ${val} ]] && kernargs="${kernargs} ${i}=${val}"   FONT_MAP rd.vconsole.font.map
938   done   FONT_UNIMAP rd.vconsole.font.unimap
939   else   UNICODE rd.vconsole.font.unicode
940   if [ -r /etc/conf.d/consolefont ]   EXT_KEYMAP rd.vconsole.keymap.ext
941   then   LANG rd.locale.LANG
942   . /etc/conf.d/consolefont   LC_ALL rd.locale.LC_ALL'
   
  if [[ -n ${CONSOLEFONT} ]]  
  then  
  kernargs="${kernargs} SYSFONT=${CONSOLEFONT}"  
  fi  
  fi  
   
  if  [ -r /etc/conf.d/keymap ]  
  then  
  . /etc/conf.d/keymap  
   
  if [[ -n ${KEYMAP} ]]  
  then  
  kernargs="${kernargs} KEYTABLE=${KEYMAP}"  
  fi  
  fi  
  fi  
   
  if [ -r /etc/locale.conf ]  
  then  
  . /etc/locale.conf  
   
  if [[ -n ${LANG} ]]  
  then  
  kernargs="${kernargs} LANG=${LANG}"  
  fi  
  fi  
943  fi  fi
944    
945  # set this as the default if we have the package and it matches  # set this as the default if we have the package and it matches
# Line 1052  fi Line 1034  fi
1034  # if we mounted the U-Boot directory, unmount it.  # if we mounted the U-Boot directory, unmount it.
1035  [[ -n ${mounted} ]] && umount ${ubootDir}  [[ -n ${mounted} ]] && umount ${ubootDir}
1036    
1037    # make sure changes make it to the disk.
1038    # if /boot is a mountpoint, force the meta data on disk
1039    # to by-pass writeback delay.
1040    # PPC64LE-only to deal with Petitboot issues
1041    if [[ ${ARCH} = ppc64le ]]
1042    then
1043        sync && mountpoint -q /boot && fsfreeze -f /boot && fsfreeze -u /boot
1044    fi
1045    
1046  exit 0  exit 0

Legend:
Removed from v.2972  
changed lines
  Added in v.3004