We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04c465d + 213b529 commit 4eeb4caCopy full SHA for 4eeb4ca
docker2singularity.sh
@@ -174,7 +174,8 @@ fi
174
# making sure that any user can read and execute everything in the container
175
echo "(7/9) Fixing permissions..."
176
singularity exec --writable --contain $new_container_name /bin/sh -c "find /* -maxdepth 0 -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+r -R '{}' \;"
177
-buildname=$(head -n 1 /etc/issue)
+buildname=$(singularity exec --contain $new_container_name /bin/sh -c "head -n 1 /etc/issue")
178
+echo $buildname
179
if [[ $buildname =~ Buildroot|Alpine ]] ; then
180
# we're running on a Builroot container and need to use Busybox's find
181
echo "We're running on BusyBox/Buildroot"
0 commit comments