diff options
author | VG <vg@devys.org> | 2016-11-09 00:32:53 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-11-09 00:32:53 +0100 |
commit | b6e166a496d6624ae9eaf5b1739749a0837b55f1 (patch) | |
tree | 22116a8f1776634dd8a9464754b45c9f867dca49 | |
parent | ce4b373c44ab76ea3177c8d4a32ca65630bd55a7 (diff) | |
download | debootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.tar.gz debootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.tar.bz2 debootstrap-scripts-b6e166a496d6624ae9eaf5b1739749a0837b55f1.zip |
detect chroot in vg-copy-rpi (missing /proc/mounts)
-rwxr-xr-x | rpi2-debian-stdkernel/files/vg-copy-rpi | 1 |
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 |