Problem: Unable to use pkg.install with Salt in dom0 when using UpdateVM that has only yum due to incorrect options passed by Salt assuming dnf presence
Solution: Filter out invalid yum options when dnf is not found in UpdateVM Fixes QubesOS/qubes-issues#2223
This commit is contained in:
		
							parent
							
								
									7fa3c51fd2
								
							
						
					
					
						commit
						cd26354945
					
				| @ -53,6 +53,9 @@ fi | |||||||
| YUM="yum" | YUM="yum" | ||||||
| if type dnf >/dev/null 2>&1; then | if type dnf >/dev/null 2>&1; then | ||||||
|     YUM="dnf --best --allowerasing --noplugins" |     YUM="dnf --best --allowerasing --noplugins" | ||||||
|  | else | ||||||
|  |     # salt in dom0 thinks it's using dnf but we only have yum so need to remove extra options | ||||||
|  |     OPTS="${OPTS/--best --allowerasing/}" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if ! [ -d "$DOM0_UPDATES_DIR" ]; then | if ! [ -d "$DOM0_UPDATES_DIR" ]; then | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Vladimir Lushnikov
						Vladimir Lushnikov