Syslinux directory is evaluated only when Syslinux is used.
This commit is contained in:
		
							parent
							
								
									c8e0ac2a21
								
							
						
					
					
						commit
						60e9cccb15
					
				| @ -5,9 +5,6 @@ set -e | |||||||
| # Load common properties and functions in the current script. | # Load common properties and functions in the current script. | ||||||
| . ./common.sh | . ./common.sh | ||||||
| 
 | 
 | ||||||
| # Find the Syslinux build directory. |  | ||||||
| WORK_SYSLINUX_DIR=`ls -d $WORK_DIR/syslinux/syslinux-*` |  | ||||||
| 
 |  | ||||||
| init() { | init() { | ||||||
|   # Remove the old ISO generation area if it exists. |   # Remove the old ISO generation area if it exists. | ||||||
|   echo "Removing old ISO image work area. This may take a while." |   echo "Removing old ISO image work area. This may take a while." | ||||||
| @ -56,6 +53,9 @@ prepare_boot_bios() { | |||||||
|   cp -r $SRC_DIR/minimal_boot/bios/* \ |   cp -r $SRC_DIR/minimal_boot/bios/* \ | ||||||
|     $ISOIMAGE |     $ISOIMAGE | ||||||
| 
 | 
 | ||||||
|  |   # Find the Syslinux build directory. | ||||||
|  |   WORK_SYSLINUX_DIR=`ls -d $WORK_DIR/syslinux/syslinux-*` | ||||||
|  | 
 | ||||||
|   # Copy the precompiled files 'isolinux.bin' and 'ldlinux.c32'. These files |   # Copy the precompiled files 'isolinux.bin' and 'ldlinux.c32'. These files | ||||||
|   # are used by Syslinux during the legacy BIOS boot process. |   # are used by Syslinux during the legacy BIOS boot process. | ||||||
|   mkdir -p $ISOIMAGE/boot/syslinux |   mkdir -p $ISOIMAGE/boot/syslinux | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user