Skip to content

Commit

Permalink
bind whole root dir; use local plugins in testing
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Apr 18, 2021
1 parent 999f53d commit 944ea53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archiso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MOD_LIVE_DIR=${CHROOT_DIR}/root/.mod-live
mkdir -p cache output workdir
mkdir -p ${CHROOT_DIR}/mnt/pedalboards
mkdir -p ${CHROOT_DIR}/mnt/plugins
mkdir -p ${CHROOT_DIR}/root/rwdata/data
mkdir -p ${CHROOT_DIR}/root/rwdata/root
mkdir -p ${CHROOT_DIR}/root/rwdata/user-files
mkdir -p ${MOD_LIVE_DIR}

Expand Down
7 changes: 5 additions & 2 deletions mod-os/start-dummy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ cd $(dirname ${0})

# verify soundcard is valid
if [ ! -e /proc/asound/Dummy ]; then
echo "error: can't find Loopback soundcard"
echo "error: can't find Dummy soundcard"
exit 1
fi
# sudo modprobe snd-dummy hrtimer=1 pcm_devs=1 pcm_substreams=8

# get soundcard index
SOUNDCARD=$(readlink /proc/asound/Dummy | awk 'sub("card","")')
Expand Down Expand Up @@ -40,6 +41,8 @@ NSPAWN_OPTS+=" --bind-ro=/mnt/pedalboards"
fi
if [ -e /mnt/plugins ]; then
NSPAWN_OPTS+=" --bind-ro=/mnt/plugins"
elif [ -e ../plugins/bundles/abGate.lv2 ]; then
NSPAWN_OPTS+=" --bind-ro=$(pwd)/../plugins/bundles:/mnt/plugins"
fi

# ready!
Expand All @@ -54,7 +57,7 @@ sudo systemd-nspawn \
--bind=/dev/snd/controlC${SOUNDCARD} \
--bind=/dev/snd/seq \
--bind=/dev/snd/timer \
--bind=$(pwd)/../rwdata/data:/root/data \
--bind=$(pwd)/../rwdata/root:/root \
--bind=$(pwd)/../rwdata/user-files:/data/user-files \
--bind-ro=/etc/hostname \
--bind-ro=/etc/hosts \
Expand Down
4 changes: 3 additions & 1 deletion mod-os/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ NSPAWN_OPTS+=" --bind-ro=/mnt/pedalboards"
fi
if [ -e /mnt/plugins ]; then
NSPAWN_OPTS+=" --bind-ro=/mnt/plugins"
elif [ -e ../plugins/bundles/abGate.lv2 ]; then
NSPAWN_OPTS+=" --bind-ro=$(pwd)/../plugins/bundles:/mnt/plugins"
fi

# ready!
Expand All @@ -80,7 +82,7 @@ sudo systemd-nspawn \
--bind=/dev/snd/controlC${SOUNDCARD} \
--bind=/dev/snd/seq \
--bind=/dev/snd/timer \
--bind=$(pwd)/../rwdata/data:/root/data \
--bind=$(pwd)/../rwdata/root:/root \
--bind=$(pwd)/../rwdata/user-files:/data/user-files \
--bind-ro=/etc/hostname \
--bind-ro=/etc/hosts \
Expand Down
Empty file removed rwdata/data/.gitkeep
Empty file.

0 comments on commit 944ea53

Please sign in to comment.