We may as well use echo here as we recreate mtab fully if successfull.
This commit is contained in:
		| @@ -32,7 +32,7 @@ depend() { | ||||
|  | ||||
| do_mtab() { | ||||
| 	# Don't create mtab if /etc is readonly | ||||
| 	if ! cp /dev/null /etc/mtab 2>/dev/null; then | ||||
| 	if ! echo 2>/dev/null >/etc/mtab; then | ||||
| 		ewarn "Skipping /etc/mtab initialization (ro root)" | ||||
| 		return 0 | ||||
| 	fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user