From eed8d293b1d0a5ceb2ca3d88d73b97fa9badbb7b Mon Sep 17 00:00:00 2001 From: Roland Clobus Date: Sat, 8 Jan 2022 10:26:48 +0100 Subject: [PATCH] Bugfix: Do not copy the content of e.g. /dev/shm when creating hdd images Discovered when building with '--binary-image hdd' on /dev/shm --- scripts/build/binary_hdd | 3 ++- scripts/build/source_hdd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index ac5247b19..8d24586c8 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -143,7 +143,8 @@ then MAKEDEV=true mv chroot/dev chroot/dev.tmp - find /dev | cpio -dmpu chroot + # Don't copy mount points (e.g. /dev/shm) + find /dev -xdev | cpio -dmpu chroot fi echo "!!! The following error/warning messages can be ignored !!!" diff --git a/scripts/build/source_hdd b/scripts/build/source_hdd index e207c1f9f..da7c91bca 100755 --- a/scripts/build/source_hdd +++ b/scripts/build/source_hdd @@ -67,7 +67,8 @@ then MAKEDEV=true mv chroot/dev chroot/dev.tmp - find /dev | cpio -dmpu chroot + # Don't copy mount points (e.g. /dev/shm) + find /dev -xdev| cpio -dmpu chroot fi case "${LB_BINARY_FILESYSTEM}" in