mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
TBR:Fix build. Shouldn't do fuse stuff if fuse isn't installed on host
This commit is contained in:
parent
aa1a7fd63d
commit
7138f0a79b
@ -146,8 +146,8 @@ function setup_env {
|
||||
# Mount fuse device from host machine into chroot and copy over
|
||||
# corresponding kernel modules.
|
||||
MOUNTED_PATH="$(readlink -f "${FLAGS_chroot}${FUSE_DEVICE}")"
|
||||
if [ -z "$(mount | grep -F "on ${MOUNTED_PATH} ")" ]
|
||||
then
|
||||
if [ -z "$(mount | grep -F "on ${MOUNTED_PATH} ")" ] && \
|
||||
[ -c "${FUSE_DEVICE}" ] ; then
|
||||
if [ -c "${FUSE_DEVICE}" ] ; then
|
||||
echo "Mounting fuse device"
|
||||
sudo touch "${MOUNTED_PATH}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user