Magellan Linux

Diff of /trunk/grubby/installkernel

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

revision 3142 by niro, Wed Jun 29 14:52:33 2016 UTC revision 3143 by niro, Tue Jul 7 11:20:11 2020 UTC
# Line 20  Line 20 
20  # Author(s): tyson@rwii.com  # Author(s): tyson@rwii.com
21  #  #
22    
23    [[ -f /etc/conf.d/grub ]] && . /etc/conf.d/grub
24    
25  usage()  usage()
26  {  {
27   echo "Usage: $(basename $0) <kernel_version> <bootimage> <mapfile>" >&2   echo "Usage: $(basename $0) <kernel_version> <bootimage> <mapfile>" >&2
# Line 87  cp ${MAPFILE} ${INSTALL_PATH}/System.map Line 89  cp ${MAPFILE} ${INSTALL_PATH}/System.map
89  ln -fs ${RELATIVE_PATH}${INSTALL_PATH}/${KERNEL_NAME}-${KERNEL_VERSION} ${LINK_PATH}/${KERNEL_NAME}  ln -fs ${RELATIVE_PATH}${INSTALL_PATH}/${KERNEL_NAME}-${KERNEL_VERSION} ${LINK_PATH}/${KERNEL_NAME}
90  ln -fs ${RELATIVE_PATH}${INSTALL_PATH}/System.map-${KERNEL_VERSION} ${LINK_PATH}/System.map  ln -fs ${RELATIVE_PATH}${INSTALL_PATH}/System.map-${KERNEL_VERSION} ${LINK_PATH}/System.map
91    
92    if [ "x${GRUB_ENABLE_BLSCFG}" = "xtrue" ] || [ ! -f /sbin/new-kernel-pkg ]; then
93     kernel-install add $KERNEL_VERSION $INSTALL_PATH/$KERNEL_NAME-$KERNEL_VERSION
94     exit $?
95    fi
96    
97  if [[ -n ${cfgLoader} ]] && [[ -x /sbin/new-kernel-pkg ]]  if [[ -n ${cfgLoader} ]] && [[ -x /sbin/new-kernel-pkg ]]
98  then  then
99   if [ -n "$(which dracut 2>/dev/null)" ]   if [ -n "$(which dracut 2>/dev/null)" ]

Legend:
Removed from v.3142  
changed lines
  Added in v.3143