Browse Source

probe: Allow ls to be a symlink.

Changelog: None
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
2.1.x
Drew Moseley 5 years ago
parent
commit
6c64b840a6
  1. 3
      modules/probe.sh

3
modules/probe.sh

@ -23,6 +23,9 @@ probe_arch() {
# to busybox
file_info=""
for location in bin/ls usr/bin/ls; do
if [ -L work/rootfs/${location} ]; then
location=$(readlink work/rootfs/${location})
fi
if [ -e work/rootfs/${location} ]; then
file_info=$(file -b --dereference work/rootfs/${location})
break

Loading…
Cancel
Save