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

INSTALL scripts cannot be unpacked without /tmp existing #566

Open
classabbyamp opened this issue Aug 9, 2023 · 0 comments
Open

INSTALL scripts cannot be unpacked without /tmp existing #566

classabbyamp opened this issue Aug 9, 2023 · 0 comments

Comments

@classabbyamp
Copy link
Member

noticed this when building the infra-nginx container:

#0 3.145 ERROR: nginx-1.24.0_1: [unpack] INSTALL script failed to execute pre ACTION: No such file or directory
#0 3.145 ERROR: nginx-1.24.0_1: [unpack] failed to unpack files from archive: No such file or directory

with debug on:

[*] Unpacking packages
nginx-1.24.0_1: unpacking ...
[DEBUG] xbps_pkg_exec_buffer: mkstemp No such file or directory
ERROR: nginx-1.24.0_1: [unpack] INSTALL script failed to execute pre ACTION: No such file or directory
ERROR: nginx-1.24.0_1: [unpack] failed to unpack files from archive: No such file or directory
[DEBUG] [trans] failed to unpack nginx-1.24.0_1: No such file or directory

eventually discovered it was caused by /tmp not existing in the container, so xbps could not use mkstemp when extracting the INSTALL script. This can then affect more dirs if trying to install/reconfigure base-files without /tmp existing, as it won't unpack the INSTALL script that creates dirs like /boot, /home, etc

if ((fd = mkstemp(fpath)) == -1) {
rv = errno;
xbps_dbg_printf("%s: mkstemp %s\n",
__func__, strerror(errno));
goto out;
}

classabbyamp added a commit to void-linux/void-containers that referenced this issue Aug 9, 2023
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

No branches or pull requests

1 participant