--- Begin Message ---
Subject: |
`guix pack --format=squashfs` fails on CentOS7 |
Date: |
Thu, 12 Mar 2020 17:47:24 +0000 |
`guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux
disabled.
```
$ /var/guix/profiles/per-user/marshjo/current-guix/bin/guix describe
Generation 9 Mar 12 2020 09:28:29 (current)
guix a595399
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: a595399230a7b1acb0b096b3d5a7474100014299
```
---
The information in this email, including attachments, may be confidential and
is intended solely for the addressee(s). If you believe you received this email
by mistake, please notify the sender by return email as soon as possible.
centos-packages.txt.zst
Description: centos-packages.txt.zst
ar594fgxibr6vkrpjq2n2l5mpyycpp-squashfs-pack.gz.squashfs.drv.bz2
Description: ar594fgxibr6vkrpjq2n2l5mpyycpp-squashfs-pack.gz.squashfs.drv.bz2
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7 |
Date: |
Tue, 24 Mar 2020 18:55:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi Josh,
Josh Marshall <address@hidden> skribis:
> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux
> disabled.
>
> ```
> $ /var/guix/profiles/per-user/marshjo/current-guix/bin/guix describe
> Generation 9 Mar 12 2020 09:28:29 (current)
> guix a595399
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: a595399230a7b1acb0b096b3d5a7474100014299
> ```
The log you posted reads this:
--8<---------------cut here---------------start------------->8---
Creating 4.0 filesystem on
/gnu/store/mhhlqyazyvwz72y6dwh56fs1zlrvrl0h-squashfs-pack.gz.squashfs, block
size 131072.
[...]
Number of uids 2
unknown (0)
nixbld (987)
Number of gids 2
unknown (0)
nixbld (980)
Failed to read existing filesystem - will not overwrite - ABORTING!
--8<---------------cut here---------------end--------------->8---
I was able to reproduce it on a CentOS 7 system and to strace the
‘mksquashfs’ process, and found that this had to do with access to
SELinux extended attributes.
Fixed in commit 53c594cb3f1f783fea18be6da23a863b00c14f5f.
Thanks!
Ludo’.
--- End Message ---