summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-19 08:13:53 -0400
committerAndrew Cady <d@jerkface.net>2019-06-19 08:13:53 -0400
commit2fc5bdad0b5b6d68392b41adfbf39bbbdec859e4 (patch)
treeac5558c2a2a77dfe566c5f27b90ec1b3ff21feab /src
parent48e16f97653453151494ac8389232e50c6b23101 (diff)
avoid redundantly copying files into rootfs
Diffstat (limited to 'src')
-rw-r--r--src/initrd/btrfs-create.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh
index 4548ee1..952d25f 100644
--- a/src/initrd/btrfs-create.sh
+++ b/src/initrd/btrfs-create.sh
@@ -119,6 +119,7 @@ copy_execs()
119 119
120 for b in "$@"; do 120 for b in "$@"; do
121 [ -x "/root/$d/$b" ] && continue 121 [ -x "/root/$d/$b" ] && continue
122 [ -x "/root/usr/$d/$b" ] && continue
122 [ "$(which "$b")" ] || continue 123 [ "$(which "$b")" ] || continue
123 cp "$(which "$b")" "/root/$d/$b" 124 cp "$(which "$b")" "/root/$d/$b"
124 done 125 done