mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-31 17:04:10 +00:00 
			
		
		
		
	Avoid issues of hard-linking to a symbolic vmlinuz as this can lead to a dangling symlink.
This commit is contained in:
		
							parent
							
								
									532f5c4bdb
								
							
						
					
					
						commit
						7982442e32
					
				
							
								
								
									
										7
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							| @ -1,3 +1,10 @@ | ||||
| livecd-rootfs (2.526) UNRELEASED; urgency=medium | ||||
| 
 | ||||
|   * Avoid issues of hard-linking to a symbolic vmlinuz as this can lead to a | ||||
|     dangling symlink. | ||||
| 
 | ||||
|  -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com>  Wed, 16 May 2018 16:20:31 +0200 | ||||
| 
 | ||||
| livecd-rootfs (2.525) bionic; urgency=medium | ||||
| 
 | ||||
|   * Don't fail to build CPC images if /lib/modules already exists in the | ||||
|  | ||||
| @ -796,13 +796,13 @@ done | ||||
| NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)" | ||||
| if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then | ||||
| 	# only one kernel flavour | ||||
| 	if [ -e "binary/$INITFS/vmlinuz" ]; then | ||||
| 	if [ -e "binary/$INITFS/vmlinuz" -a ! -h "binary/$INITFS/vmlinuz" ]; then | ||||
| 		ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel" | ||||
| 		chmod 644 "$PREFIX.kernel" | ||||
| 	else | ||||
| 		ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel" | ||||
| 	fi | ||||
| 	if [ -e "binary/$INITFS/initrd.lz" ]; then | ||||
| 	if [ -e "binary/$INITFS/initrd.lz" -a ! -h "binary/$INITFS/initrd.lz" ]; then | ||||
| 		ln "binary/$INITFS/initrd.lz" "$PREFIX.initrd" | ||||
| 		chmod 644 "$PREFIX.initrd" | ||||
| 	else | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user