From b6e166a496d6624ae9eaf5b1739749a0837b55f1 Mon Sep 17 00:00:00 2001 From: VG Date: Wed, 9 Nov 2016 00:32:53 +0100 Subject: detect chroot in vg-copy-rpi (missing /proc/mounts) --- rpi2-debian-stdkernel/files/vg-copy-rpi | 1 + 1 file changed, 1 insertion(+) (limited to 'rpi2-debian-stdkernel/files') 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 -- cgit v1.2.3