aboutsummaryrefslogtreecommitdiffstats
path: root/rpi2-debian-stdkernel/files
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-11-09 00:32:53 +0100
committerVG <vg@devys.org>2016-11-09 00:32:53 +0100
commitb6e166a496d6624ae9eaf5b1739749a0837b55f1 (patch)
tree22116a8f1776634dd8a9464754b45c9f867dca49 /rpi2-debian-stdkernel/files
parentce4b373c44ab76ea3177c8d4a32ca65630bd55a7 (diff)
downloaddebootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.tar.gz
debootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.tar.bz2
debootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.zip
detect chroot in vg-copy-rpi (missing /proc/mounts)
Diffstat (limited to 'rpi2-debian-stdkernel/files')
-rwxr-xr-xrpi2-debian-stdkernel/files/vg-copy-rpi1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpi2-debian-stdkernel/files/vg-copy-rpi b/rpi2-debian-stdkernel/files/vg-copy-rpi
index a8eb53e..2d5fd7a 100755
--- a/rpi2-debian-stdkernel/files/vg-copy-rpi
+++ b/rpi2-debian-stdkernel/files/vg-copy-rpi
@@ -1,5 +1,6 @@
#!/bin/sh
set -eux
+if ! test -e /proc/mounts; then exit 0; fi
rootsource=$(findmnt -fno source -T /)
firmwaresource=$(findmnt -fno source -T /boot/firmware/)
if ! test x"$rootsource" = x"$firmwaresource"; then