Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(proxmox): create API symlink target before mounting tmpfs - #1908

Draft
NginxL wants to merge 1 commit into
netalertx:mainfrom
NginxL:fix/1806-proxmox-api-symlink
Draft

NginxL wants to merge 1 commit into
netalertx:mainfrom
NginxL:fix/1806-proxmox-api-symlink

Conversation

@NginxL

@NginxL NginxL commented Dec 5, 2026

Copy link
Copy Markdown

Summary

Ensure the target of the tracked api -> /tmp/api symlink exists before the Proxmox installer runs mkdir and mounts tmpfs there. Ordinary non-symlink api directories keep the previous behavior.

Fixes #1806.

Verification

  • Reproduced that mkdir -p on a dangling api symlink fails before its target exists.
  • Executed the changed installer block against temporary roots for both cases:
    • dangling absolute api symlink: target created successfully;
    • ordinary missing api directory: directory created successfully.
  • bash -n and git diff --check.
  • ShellCheck emitted existing warnings elsewhere in the script and no diagnostic on the changed lines.

Gaps

  • No Proxmox LXC installation or tmpfs mount was run in this macOS environment.
  • The full Python test suite was not run because its runtime dependencies are absent and new dependency downloads are prohibited. This change is isolated to the Proxmox shell installer.

AI disclosure

AI assistance was used to inspect the installer, reproduce the symlink failure, and draft the focused patch and PR text. The diff and observed checks were reviewed before submission. The commit includes a DCO sign-off.

Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

Proxmox install script fails when it attempts to create /app/api directory as Git has already created it as a symlink to /tmp/api

1 participant