Use same background for grub theme and desktop-base grub image
This commit is contained in:
		
							parent
							
								
									9de152bc75
								
							
						
					
					
						commit
						1e09daa057
					
				
							
								
								
									
										11
									
								
								debian/kali-themes.postinst
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								debian/kali-themes.postinst
									
									
									
									
										vendored
									
									
								
							| @ -81,6 +81,17 @@ if [ "$1" = "configure" ]; then | ||||
|     # Copy grub theme to /boot | ||||
|     mkdir -p /boot/grub/themes/kali | ||||
|     cp -r /usr/share/grub/themes/kali/* /boot/grub/themes/kali/ | ||||
|     # Set grub theme background | ||||
|     # Use background with 16x9 aspect ratio for efi installations detected | ||||
|     # by the presence of grub-efi* packages (not the grub-efi*-bin which don’t | ||||
|     # necessary account for grub being the active bootloader). | ||||
|     if dpkg-query --list grub-efi* | grep -v "^... grub-efi[^[:space:]]*-bin" | grep -q "^[ih][HUFWti] " ; then | ||||
|         echo "grub-efi* packages found, using 16/9 as default grub background ratio" | ||||
|         ln -sf /boot/grub/themes/kali/grub-16x9.png /boot/grub/themes/kali/background.png | ||||
|     else | ||||
|         echo "No grub-efi* package found, using 4/3 as default grub background ratio" | ||||
|         ln -sf /boot/grub/themes/kali/grub-4x3.png /boot/grub/themes/kali/background.png | ||||
|     fi | ||||
|     # Rebuild the grub configuration with our config changes | ||||
|     if which update-grub >/dev/null; then | ||||
| 	update-grub || true | ||||
|  | ||||
							
								
								
									
										1
									
								
								share/grub/themes/kali/background.png
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								share/grub/themes/kali/background.png
									
									
									
									
									
										Symbolic link
									
								
							| @ -0,0 +1 @@ | ||||
| grub-16x9.png | ||||
| @ -1,7 +1,7 @@ | ||||
| 
 | ||||
| # Global Property | ||||
| title-text: "" | ||||
| desktop-image: "grub-16x9.png" | ||||
| desktop-image: "background.png" | ||||
| desktop-color: "#2f5595" | ||||
| terminal-font: "Unifont Regular 16" | ||||
| terminal-left: "0" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Ruiz de Alegría
						Daniel Ruiz de Alegría