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() {
|
do_mtab() {
|
||||||
# Don't create mtab if /etc is readonly
|
# 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)"
|
ewarn "Skipping /etc/mtab initialization (ro root)"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user