The check for errors from the mount command did not work as intended
because another command (echo) is executed between the mount command and the check. Reported by: Sergey Baturov <sergey@toor.org.ru> MFC after: 2 weeks
This commit is contained in:
parent
2bdd827290
commit
a0d97bf199
@ -15,6 +15,8 @@ stop_cmd=":"
|
|||||||
|
|
||||||
mountcritlocal_start()
|
mountcritlocal_start()
|
||||||
{
|
{
|
||||||
|
local err
|
||||||
|
|
||||||
# Set up the list of network filesystem types for which mounting
|
# Set up the list of network filesystem types for which mounting
|
||||||
# should be delayed until after network initialization.
|
# should be delayed until after network initialization.
|
||||||
case ${extra_netfs_types} in
|
case ${extra_netfs_types} in
|
||||||
@ -34,9 +36,10 @@ mountcritlocal_start()
|
|||||||
done
|
done
|
||||||
mount_excludes=${mount_excludes%,}
|
mount_excludes=${mount_excludes%,}
|
||||||
mount -a -t ${mount_excludes}
|
mount -a -t ${mount_excludes}
|
||||||
|
err=$?
|
||||||
echo '.'
|
echo '.'
|
||||||
|
|
||||||
case $? in
|
case ${err} in
|
||||||
0)
|
0)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -16,12 +16,15 @@ stop_cmd=":"
|
|||||||
|
|
||||||
mountlate_start()
|
mountlate_start()
|
||||||
{
|
{
|
||||||
|
local err
|
||||||
|
|
||||||
# Mount "late" filesystems.
|
# Mount "late" filesystems.
|
||||||
echo -n 'Mounting late file systems:'
|
echo -n 'Mounting late file systems:'
|
||||||
mount -a -l
|
mount -a -l
|
||||||
|
err=$?
|
||||||
echo '.'
|
echo '.'
|
||||||
|
|
||||||
case $? in
|
case ${err} in
|
||||||
0)
|
0)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user