From 7f42e7e621369aa6eaab446dc4c1bc3f04c4b266 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 24 Feb 2012 22:36:33 +0100 Subject: Revert "deal with both valid return codes of mount -a" This reverts commit fd54cc63cd6853b839d8a0d15ff7c8506743ac5a. The correct return codes of "mount -a" are: 0 all mounts succeeded 64 some mounts succeeded and some failed 32 all mounts failed We want to show "FAILED" on all return codes except for 0. There is a bug in the new mount where "ignored" is taken to be "failed", which gives some false negative. This will be fixed in util-linux. --- functions | 1 - 1 file changed, 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index 9f2078d..833711b 100644 --- a/functions +++ b/functions @@ -477,7 +477,6 @@ fsck_reboot() { mount_all() { mount -a -t "nosysfs,no${NETFS//,/,no}" -O no_netdev - return $(($? & ~64)) # ignore return code 64: some mounts succeeded } umount_all() { -- cgit v1.2.3