| OLD | NEW | 
|   1 #!/bin/sh |   1 #!/bin/sh | 
|   2  |   2  | 
|   3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |   3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 
|   4 # Use of this source code is governed by a BSD-style license that can be |   4 # Use of this source code is governed by a BSD-style license that can be | 
|   5 # found in the LICENSE file. |   5 # found in the LICENSE file. | 
|   6  |   6  | 
|   7 # Shutdown is best-effort. We don't want to die on errors. |   7 # Shutdown is best-effort. We don't want to die on errors. | 
|   8 set +e |   8 set +e | 
|   9  |   9  | 
|  10 # Measure shutdown time. /var/log/metrics is created by chromeos_startup. |  10 # Measure shutdown time. /var/log/metrics is created by chromeos_startup. | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  47 # close to that point as we can be before stateful is unmounted). |  47 # close to that point as we can be before stateful is unmounted). | 
|  48 /sbin/crash_reporter --clean_shutdown |  48 /sbin/crash_reporter --clean_shutdown | 
|  49  |  49  | 
|  50 # Lazy umount the tmpfs dirs under /var so we can immediately umount it. |  50 # Lazy umount the tmpfs dirs under /var so we can immediately umount it. | 
|  51 umount -n -l /var/tmp /var/run /var/lock |  51 umount -n -l /var/tmp /var/run /var/lock | 
|  52 umount -n /var /usr/local /home /mnt/stateful_partition |  52 umount -n /var /usr/local /home /mnt/stateful_partition | 
|  53 if [ $? -ne 0 ] ; then |  53 if [ $? -ne 0 ] ; then | 
|  54   mount > /mnt/stateful_partition/var/log/shutdown_stateful_umount_failure |  54   mount > /mnt/stateful_partition/var/log/shutdown_stateful_umount_failure | 
|  55   mount > /var/log/shutdown_stateful_umount_failure |  55   mount > /var/log/shutdown_stateful_umount_failure | 
|  56 fi |  56 fi | 
|  57 if [ -d /mnt/partner_partition/lost+found ]; then |  | 
|  58   umount -n /mnt/partner_partition |  | 
|  59 fi |  | 
|  60  |  57  | 
|  61 # Just in case something didn't unmount properly above. |  58 # Just in case something didn't unmount properly above. | 
|  62 sync |  59 sync | 
|  63  |  60  | 
|  64 # Ensure that we always claim success. |  61 # Ensure that we always claim success. | 
|  65 exit 0 |  62 exit 0 | 
| OLD | NEW |