unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34913: ‘guix pack -f squashfs’ absolute symlinks confuse Singularity 2.x
@ 2019-03-19  9:37 Ludovic Courtès
  2019-03-19 10:31 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2019-03-19  9:37 UTC (permalink / raw)
  To: 34913

Hello,

‘guix pack -f squashfs -S /bin=bin bash …’ produces a file system that
contains symlinks with absolute targets.

Unfortunately, Singularity 2.x erroneously checks for symlink validity
before chroot’ing into the file system.  Thus all these absolute
symlinks appear to be dangling (unless the host happens to have those
symlink targets…).

I reported this a while back but this hasn’t been fixed in 2.x (the new
3.x code base doesn’t seem to have this problem):

  https://github.com/sylabs/singularity/issues/1487

The effect of this bug is that our images appear to be unusable with
Singularity 2.x, at least if you don’t manually adjust the file system
to fix those symlinks:

--8<---------------cut here---------------start------------->8---
$ singularity exec bash.sqsh /bin/sh
ERROR  : No valid /bin/sh in container
ABORT  : Retval = 255
--8<---------------cut here---------------end--------------->8---

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#34913: ‘guix pack -f squashfs’ absolute symlinks confuse Singularity 2.x
  2019-03-19  9:37 bug#34913: ‘guix pack -f squashfs’ absolute symlinks confuse Singularity 2.x Ludovic Courtès
@ 2019-03-19 10:31 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-03-19 10:31 UTC (permalink / raw)
  To: 34913-done

Ludovic Courtès <ludovic.courtes@inria.fr> skribis:

> The effect of this bug is that our images appear to be unusable with
> Singularity 2.x, at least if you don’t manually adjust the file system
> to fix those symlinks:
>
> $ singularity exec bash.sqsh /bin/sh
> ERROR  : No valid /bin/sh in container
> ABORT  : Retval = 255

Fixed in 427c87d0bdc06cc3ee7fc220fd3ad36084412533.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-19 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-19  9:37 bug#34913: ‘guix pack -f squashfs’ absolute symlinks confuse Singularity 2.x Ludovic Courtès
2019-03-19 10:31 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).