Home | History | Annotate | Download | only in src
      1 #!/bin/sh
      2 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 # setup: mkdir -p "%T/c/bin" "%T/c/lib" "%T/c/lib64" "%T/c/usr/lib" "%T/c/usr/local" "%T/c/usr/bin" "%T/c/tmp"
      6 # args: -b /bin,/bin -b /lib,/lib -b /usr/lib,/usr/lib -b /usr/bin,/usr/bin -b /usr/local,/usr/local -C "%T/c" -t -v
      7 # args64: -b /lib64,/lib64
      8 
      9 # Can't get at common.sh from here... oops :)
     10 die () {
     11   echo "$@"
     12   exit 1
     13 }
     14 
     15 fs=$(stat -f /tmp -c %T)
     16 [ "$fs" != "tmpfs" ] && die "tmpfs"
     17 exit 0
     18