Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chromeos_shutdown

Issue 6542043: Remove /mnt/partner_partition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: rebase Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos_startup » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chromeos_startup » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698