mkdumprd: Ensure kdumpbase is added
Dracut only check if a module failed installtion if the module is listed in --add params. Without this param, if kdumpbase failed to install due to any reason, dracut will still build the initramfs only print a warning. Add this param to ensure it fail early. Signed-off-by: Kairui Song <kasong@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
		
							parent
							
								
									0084806493
								
							
						
					
					
						commit
						a1664c63d0
					
				
							
								
								
									
										2
									
								
								mkdumprd
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mkdumprd
									
									
									
									
									
								
							| @ -28,7 +28,7 @@ SAVE_PATH=$(get_save_path) | |||||||
| OVERRIDE_RESETTABLE=0 | OVERRIDE_RESETTABLE=0 | ||||||
| 
 | 
 | ||||||
| extra_modules="" | extra_modules="" | ||||||
| dracut_args="--quiet --hostonly --hostonly-cmdline --hostonly-i18n --hostonly-mode strict -o \"plymouth dash resume ifcfg earlykdump\"" | dracut_args="--add kdumpbase --quiet --hostonly --hostonly-cmdline --hostonly-i18n --hostonly-mode strict -o \"plymouth dash resume ifcfg earlykdump\"" | ||||||
| 
 | 
 | ||||||
| readonly MKDUMPRD_TMPDIR="$(mktemp -d -t mkdumprd.XXXXXX)" | readonly MKDUMPRD_TMPDIR="$(mktemp -d -t mkdumprd.XXXXXX)" | ||||||
| [ -d "$MKDUMPRD_TMPDIR" ] || perror_exit "dracut: mktemp -p -d -t dracut.XXXXXX failed." | [ -d "$MKDUMPRD_TMPDIR" ] || perror_exit "dracut: mktemp -p -d -t dracut.XXXXXX failed." | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user