mirror of
				https://gitlab.com/alemaire/image-specs.git
				synced 2025-01-17 17:48:20 +00:00 
			
		
		
		
	networking: don't fail if we can't restore firewall tables
I'm not sure if this happens on all images, but on a pi 4 networking fails to initialize because there's no /etc/iptables/rules.v4. That doesn't seem right, so let's ignore errors and allow networking.
This commit is contained in:
		
							
								
								
									
										4
									
								
								eth0
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								eth0
									
									
									
									
									
								
							| @@ -2,5 +2,5 @@ auto eth0 | ||||
|  | ||||
| # TODO: switch back to iptables-persistent once it re-enters testing | ||||
| iface eth0 inet dhcp | ||||
| 	pre-up iptables-restore < /etc/iptables/rules.v4 | ||||
| 	pre-up ip6tables-restore < /etc/iptables/rules.v6 | ||||
| 	pre-up iptables-restore < /etc/iptables/rules.v4 || true | ||||
| 	pre-up ip6tables-restore < /etc/iptables/rules.v6 || true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andres Salomon
					Andres Salomon