diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-19 08:13:53 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-19 08:13:53 -0400 |
commit | 2fc5bdad0b5b6d68392b41adfbf39bbbdec859e4 (patch) | |
tree | ac5558c2a2a77dfe566c5f27b90ec1b3ff21feab /src | |
parent | 48e16f97653453151494ac8389232e50c6b23101 (diff) |
avoid redundantly copying files into rootfs
Diffstat (limited to 'src')
-rw-r--r-- | src/initrd/btrfs-create.sh | 1 |
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 |