Skip to content

Commit 4eeb4ca

Browse files
authored
Merge pull request #23 from singularityware/fix/issue
fix for #22
2 parents 04c465d + 213b529 commit 4eeb4ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker2singularity.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ fi
174174
# making sure that any user can read and execute everything in the container
175175
echo "(7/9) Fixing permissions..."
176176
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)
177+
buildname=$(singularity exec --contain $new_container_name /bin/sh -c "head -n 1 /etc/issue")
178+
echo $buildname
178179
if [[ $buildname =~ Buildroot|Alpine ]] ; then
179180
# we're running on a Builroot container and need to use Busybox's find
180181
echo "We're running on BusyBox/Buildroot"

0 commit comments

Comments
 (0)