`guix pack --format=squashfs` fails on CentOS7

  • Done
  • quality assurance status badge
Details
2 participants
  • Josh Marshall
  • Ludovic Courtès
Owner
unassigned
Submitted by
Josh Marshall
Severity
normal
J
J
Josh Marshall wrote on 12 Mar 2020 18:47
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
BL0PR06MB46734E52158D9DA875680143E9FD0@BL0PR06MB4673.namprd06.prod.outlook.com
`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
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.
Attachment: centos-packages.txt.zst (.34 MiB)
L
L
Ludovic Courtès wrote on 15 Mar 2020 22:46
(name . Josh Marshall)(address . Josh.Marshall@jax.org)(address . 40043@debbugs.gnu.org)
877dzlgul2.fsf@gnu.org
Hi Josh,

Josh Marshall <Josh.Marshall@jax.org> skribis:

Toggle quote (2 lines)
> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.

The error message normally says something like:

View build log at /var/log/guix/drvs/…

Could you post that file?

Also, what is the output of “uname -sr” on this machine?

Thanks in advance!

Ludo’.
J
J
Josh Marshall wrote on 16 Mar 2020 14:38
(name . Ludovic Courtès)(address . ludovic.courtes@inria.fr)(name . 40043@debbugs.gnu.org)(address . 40043@debbugs.gnu.org)
BL0PR06MB46730AA52F2AD1FA1BC8F475E9F90@BL0PR06MB4673.namprd06.prod.outlook.com
Already included as an attachment on the first email.

```
$ uname -sr
Linux 3.10.0-1062.12.1.el7.x86_64
```

________________________________________
From: Ludovic Courtès <ludovic.courtes@inria.fr>
Sent: Sunday, March 15, 2020 5:46 PM
To: Josh Marshall
Cc: 40043@debbugs.gnu.org
Subject: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7

Hi Josh,

Josh Marshall <Josh.Marshall@jax.org> skribis:

Toggle quote (2 lines)
> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.

The error message normally says something like:

View build log at /var/log/guix/drvs/…

Could you post that file?

Also, what is the output of “uname -sr” on this machine?

Thanks in advance!

Ludo’.
---

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.
L
L
Ludovic Courtès wrote on 24 Mar 2020 18:55
Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7
(name . Josh Marshall)(address . Josh.Marshall@jax.org)(address . 40043-done@debbugs.gnu.org)
87blolljsw.fsf@gnu.org
Hi Josh,

Josh Marshall <Josh.Marshall@jax.org> skribis:

Toggle quote (11 lines)
> `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:

Toggle snippet (13 lines)
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!

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’.
Closed
J
J
Josh Marshall wrote on 24 Mar 2020 18:58
(name . Ludovic Courtès)(address . ludovic.courtes@inria.fr)(name . 40043-done@debbugs.gnu.org)(address . 40043-done@debbugs.gnu.org)
BL0PR06MB4673AE7E21B3F781AA2C3667E9F10@BL0PR06MB4673.namprd06.prod.outlook.com
Thanks! I look forward to my increased use of `guix` ?
________________________________
From: Ludovic Courtès <ludovic.courtes@inria.fr>
Sent: Tuesday, March 24, 2020 1:55:11 PM
To: Josh Marshall <Josh.Marshall@jax.org>
Cc: 40043-done@debbugs.gnu.org <40043-done@debbugs.gnu.org>
Subject: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7
Hi Josh,
Josh Marshall <Josh.Marshall@jax.org> skribis:
Toggle quote (10 lines)
> `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:
Toggle snippet (12 lines)
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!
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’.
---

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.
Attachment: file
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40043@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40043
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch