Skip to content

return code should reflect whether install worked or not #17

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

Open
dch opened this issue Jun 8, 2025 · 0 comments
Open

return code should reflect whether install worked or not #17

dch opened this issue Jun 8, 2025 · 0 comments

Comments

@dch
Copy link

dch commented Jun 8, 2025

while testing the known issue of cross-device link handling, I noticed that
a failed pkg run still returns 0, even though FreeBSD-runtime didn't
succeed, and 43 packages were not installed.

...
[239/283] Extracting FreeBSD-resolvconf-man-15.snap20241026125659: 100%
[240/283] Installing FreeBSD-runtime-15.snap20250606013602...
[240/283] Extracting FreeBSD-runtime-15.snap20250606013602:  32%
pkg: Fail to create hardlink: /.pkgtemp..profile.CNoXJiaVh9G3 <-> /root/.pkgtemp..profile.zltb4Tr3AL9Q:Cross-device link
[240/283] Extracting FreeBSD-runtime-15.snap20250606013602: 100%
Error: exit
Merged /etc/pkg/FreeBSD.conf
Merged /etc/rc.d/nuageinit
Merged /etc/mtree/BSD.root.dist
Merged /etc/blacklistd.conf
Restarting sshd
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 65097.
Performing sanity check on sshd configuration.
Starting sshd.
root@akai ~# echo $status
0
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