File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
9191  do 
9292    #  strip microcode from initrd if it has it
9393    LAYERCOUNT=$( cat ${INITRD_NAME}  |  cpio -tdmv 2>&1  > /dev/null |  wc -c) 
94-     if  [[ ${LAYERCOUNT}  -lt  5000 ]]; then 
94+     if  [[ ${LAYERCOUNT}  -lt  5000 ]]  &&  [[  " ${INITRD_TYPE} "   !=   " uncomp "  ]] ; then 
9595      #  This is a microcode cpio wrapper
9696      BLOCKCOUNT=$( cat ${INITRD_NAME}  |  cpio -tdmv 2>&1  > /dev/null |  awk ' END{print $1}' ) 
9797      dd if=${INITRD_NAME}  of=${INITRD_NAME}${COUNTER}  bs=512 skip=${BLOCKCOUNT} 
@@ -109,7 +109,7 @@ if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
109109      elif  [[ " ${INITRD_TYPE} "   ==  " gz"   ]]; then 
110110        zcat ../${INITRD_NAME}  |  cpio -i -d
111111      elif  [[ " ${INITRD_TYPE} "   ==  " uncomp"   ]]; then 
112-         cat ../${INITRD_NAME}  |  cpio -idmv --quiet 
112+         cat ../${INITRD_NAME}  |  cpio -i -d 
113113      fi 
114114      break 
115115    fi 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments