Skip to content

snapcraft, hooks: include /usr/share/X11/XErrorDB#432

Merged
alfonsosanchezbeato merged 1 commit intocanonical:mainfrom
bboozzoo:bboozzoo/xerrordb
Apr 22, 2026
Merged

snapcraft, hooks: include /usr/share/X11/XErrorDB#432
alfonsosanchezbeato merged 1 commit intocanonical:mainfrom
bboozzoo:bboozzoo/xerrordb

Conversation

@bboozzoo
Copy link
Copy Markdown
Collaborator

@bboozzoo bboozzoo commented Apr 16, 2026

Include /usr/share/X11/XErrorDB (~42KB). This avoids needing to ship the
file in the GPU drivers snap (typically mesa-2604) and setting it up in
place with the help of snap layouts, which in turn would require
construction of a writable mimic on top of /usr/share/X11.

Related: canonical/snapcraft#6188

Copy link
Copy Markdown
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the directory from 020-extra-files.chroot instead

@bboozzoo
Copy link
Copy Markdown
Collaborator Author

Please make the directory from 020-extra-files.chroot instead

done

@bboozzoo bboozzoo changed the title static/usr/share/X11/XErrorDB: provide a placeholder mount point for gpu snap bind mounts hooks: provide a placeholder mount point for gpu snap bind mounts usr/share/X11/XErrorDB Apr 17, 2026
@bboozzoo bboozzoo changed the title hooks: provide a placeholder mount point for gpu snap bind mounts usr/share/X11/XErrorDB hooks: provide a placeholder mount point for /usr/share/X11/XErrorDB Apr 17, 2026
@bboozzoo bboozzoo force-pushed the bboozzoo/xerrordb branch from 7a7c7c2 to 8547f8d Compare April 17, 2026 05:56
Comment thread hooks/020-extra-files.chroot Outdated
Comment on lines +61 to +64
cat <<'EOF' > /usr/share/X11/XErrorDB
! This is a placeholder file for bind mounting XErrorDB from GPU drivers
! provider snap.
EOF
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need the file, on one side is nice but on the other hand we have plenty of mount points and we do not put files there. I think it is enough to have this as a comment in this script instead.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file is the mount point, canonical/snapcraft#6188 which uses bind-file with /usr/share/X11/XErrorDB target

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks for clarifying

Copy link
Copy Markdown
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@bboozzoo
Copy link
Copy Markdown
Collaborator Author

Per discussion with @Meulengracht we'll use chisel and ship the actual file

@bboozzoo bboozzoo added the blocked This PR should not be merged and is blocked pending external action label Apr 22, 2026
@bboozzoo bboozzoo force-pushed the bboozzoo/xerrordb branch from 8547f8d to 32b39d0 Compare April 22, 2026 12:03
Include /usr/share/X11/XErrorDB (~42KB). This avoids needing to ship the
file in the GPU drivers snap (typically mesa-2604) and setting it up in
place with the help of snap layouts, which in turn would require
construction of a writable mimic on top of /usr/share/X11.

Signed-off-by: Maciek Borzecki <maciej.borzecki@canonical.com>
@bboozzoo bboozzoo force-pushed the bboozzoo/xerrordb branch from 32b39d0 to 4d1b0e5 Compare April 22, 2026 12:04
@bboozzoo bboozzoo changed the title hooks: provide a placeholder mount point for /usr/share/X11/XErrorDB snapcraft, hooks: include /usr/share/X11/XErrorDB Apr 22, 2026
@bboozzoo bboozzoo removed the blocked This PR should not be merged and is blocked pending external action label Apr 22, 2026
Copy link
Copy Markdown
Member

@Meulengracht Meulengracht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! Appreciate the change on direction

Copy link
Copy Markdown
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks, this is indeed better

@alfonsosanchezbeato alfonsosanchezbeato merged commit 753e2fc into canonical:main Apr 22, 2026
27 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants