We assemble the init script of ramdisks with the fragments from included elements, alphabetically. We now place leading numbers on all of the fragments we ship, to make it more obvious to element authors and downstream users, how the process works. Closes-Bug: #1251706 Change-Id: I56b0d42971c8c462eddcfe1769f8124405e1233c
		
			
				
	
	
		
			11 lines
		
	
	
		
			459 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			459 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
TFTP_MAC_ADDRESS="01-"`echo $BOOT_MAC_ADDRESS | sed 's/:/-/g' | tr "A-Z" "a-z"`
 | 
						|
tftp -r /tftpboot/pxelinux.cfg/${TFTP_MAC_ADDRESS} -g ${BOOT_SERVER}
 | 
						|
APPEND=$(tail -n1 ${TFTP_MAC_ADDRESS} | cut -f3- -d" ")
 | 
						|
 | 
						|
KERNEL=$(get_kernel_parameter BOOT_IMAGE | sed 's/deploy_//g')
 | 
						|
RAMDISK=$(echo $KERNEL | sed 's/kernel/ramdisk/')
 | 
						|
 | 
						|
tftp -r ${KERNEL} -g ${BOOT_SERVER}
 | 
						|
tftp -r ${RAMDISK} -g ${BOOT_SERVER}
 | 
						|
kexec -l kernel --append="${APPEND}" --initrd=ramdisk && kexec -e
 |