Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIF extraction failure with image containing pseudo device (/dev) #5690

Closed
cclerget opened this issue Nov 4, 2020 · 1 comment · Fixed by #5692
Closed

SIF extraction failure with image containing pseudo device (/dev) #5690

cclerget opened this issue Nov 4, 2020 · 1 comment · Fixed by #5692
Assignees
Milestone

Comments

@cclerget
Copy link
Collaborator

cclerget commented Nov 4, 2020

Version of Singularity:

What version of Singularity are you using? Run:

master

Expected behavior

Build succeed

Actual behavior

Note: this also fail with --fakeroot because unsquashfs attempt to set time for non-existent pseudo devices

$ singularity build /tmp/ubuntu.sif library://ubuntu:20.04
INFO:    Starting build...
INFO:    Using cached image
ERROR:   unpackSIF failed: root filesystem extraction failed: extract command failed: WARNING: passwd file doesn't exist in container, not updating
WARNING: group file doesn't exist in container, not updating
WARNING: Skipping mount /etc/hosts [binds]: /etc/hosts doesn't exist in container
WARNING: Skipping mount /etc/localtime [binds]: /etc/localtime doesn't exist in container
WARNING: Skipping mount proc [kernel]: /proc doesn't exist in container
WARNING: Skipping mount /usr/local/var/singularity/mnt/session/tmp [tmp]: /tmp doesn't exist in container
WARNING: Skipping mount /usr/local/var/singularity/mnt/session/var/tmp [tmp]: /var/tmp doesn't exist in container
WARNING: Skipping mount /usr/local/var/singularity/mnt/session/etc/resolv.conf [files]: /etc/resolv.conf doesn't exist in container

create_inode: could not create character device /image/rootfs/dev/full, because you're not superuser!

create_inode: could not create character device /image/rootfs/dev/null, because you're not superuser!

create_inode: could not create character device /image/rootfs/dev/random, because you're not superuser!

create_inode: could not create character device /image/rootfs/dev/tty, because you're not superuser!

create_inode: could not create character device /image/rootfs/dev/urandom, because you're not superuser!

create_inode: could not create character device /image/rootfs/dev/zero, because you're not superuser!
Parallel unsquashfs: Using 6 processors
4197 inodes (4657 blocks) to write



created 3894 files
created 601 directories
created 295 symlinks
created 0 devices
created 0 fifos
: exit status 1

What OS/distro are you running

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

How did you install Singularity

Git

@cclerget cclerget added this to the 3.7.0 milestone Nov 4, 2020
@cclerget cclerget self-assigned this Nov 4, 2020
@cclerget
Copy link
Collaborator Author

cclerget commented Nov 4, 2020

Note, it happens with unsquashfs 4.4 and is similar to #5668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant