mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[iso] change the Ubuntu-type grub.cfg persistence token
* Among other nefarious things, ubuntu 20.04 added a $casper_flavour suffix to their grub.cfg /casper/vmlinuz kernel option, so we can no longer rely on 'persistent' being inserted in a proper location. * Switch to latching on file=/cdrom/preseed and hope that it will work for all of Ubuntu & derivatives. * Part of #1499.
This commit is contained in:
		
							parent
							
								
									b19f47f9b8
								
							
						
					
					
						commit
						045f590c3b
					
				
					 2 changed files with 8 additions and 10 deletions
				
			
		|  | @ -309,12 +309,10 @@ static void fix_config(const char* psz_fullpath, const char* psz_path, const cha | |||
| 	// Add persistence to the kernel options
 | ||||
| 	if ((boot_type == BT_IMAGE) && HAS_PERSISTENCE(img_report) && persistence_size) { | ||||
| 		if ((props->is_grub_cfg) || (props->is_menu_cfg) || (props->is_syslinux_cfg)) { | ||||
| 			// Ubuntu & derivatives are assumed to use '/casper/vmlinuz'
 | ||||
| 			// in their kernel options and use 'persistent' as keyword.
 | ||||
| 			// Ubuntu & derivatives are assumed to use 'file=/cdrom/preseed/...'
 | ||||
| 			// somewhere in their kernel options and use 'persistent' as keyword.
 | ||||
| 			if (replace_in_token_data(src, props->is_grub_cfg ? "linux" : "append", | ||||
| 				props->is_grub_cfg ? "/casper/vmlinuz" : "initrd=/casper/initrd", | ||||
| 				// Of course, Mint has to use 'initrd=/casper/initrd.lz' instead of 'initrd=/casper/initrd'
 | ||||
| 				props->is_grub_cfg ? "/casper/vmlinuz persistent" : "persistent initrd=/casper/initrd", TRUE) != NULL) | ||||
| 				"file=/cdrom/preseed", "persistent file=/cdrom/preseed", TRUE) != NULL) | ||||
| 				uprintf("  Added 'persistent' kernel option"); | ||||
| 			// Debian & derivatives are assumed to use 'boot=live' in
 | ||||
| 			// their kernel options and use 'persistence' as keyword.
 | ||||
|  |  | |||
							
								
								
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							|  | @ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | |||
| IDD_DIALOG DIALOGEX 12, 12, 232, 326 | ||||
| STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||||
| EXSTYLE WS_EX_ACCEPTFILES | ||||
| CAPTION "Rufus 3.10.1632" | ||||
| CAPTION "Rufus 3.10.1633" | ||||
| FONT 9, "Segoe UI Symbol", 400, 0, 0x0 | ||||
| BEGIN | ||||
|     LTEXT           "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP | ||||
|  | @ -395,8 +395,8 @@ END | |||
| // | ||||
| 
 | ||||
| VS_VERSION_INFO VERSIONINFO | ||||
|  FILEVERSION 3,10,1632,0 | ||||
|  PRODUCTVERSION 3,10,1632,0 | ||||
|  FILEVERSION 3,10,1633,0 | ||||
|  PRODUCTVERSION 3,10,1633,0 | ||||
|  FILEFLAGSMASK 0x3fL | ||||
| #ifdef _DEBUG | ||||
|  FILEFLAGS 0x1L | ||||
|  | @ -414,13 +414,13 @@ BEGIN | |||
|             VALUE "Comments", "https://rufus.ie" | ||||
|             VALUE "CompanyName", "Akeo Consulting" | ||||
|             VALUE "FileDescription", "Rufus" | ||||
|             VALUE "FileVersion", "3.10.1632" | ||||
|             VALUE "FileVersion", "3.10.1633" | ||||
|             VALUE "InternalName", "Rufus" | ||||
|             VALUE "LegalCopyright", "© 2011-2020 Pete Batard (GPL v3)" | ||||
|             VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" | ||||
|             VALUE "OriginalFilename", "rufus-3.10.exe" | ||||
|             VALUE "ProductName", "Rufus" | ||||
|             VALUE "ProductVersion", "3.10.1632" | ||||
|             VALUE "ProductVersion", "3.10.1633" | ||||
|         END | ||||
|     END | ||||
|     BLOCK "VarFileInfo" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue