Skip to content

Commit

Permalink
fix: Patch distrobox-init for no-internet
Browse files Browse the repository at this point in the history
@castrojo noticed that when using a quadlet, if there is no internet at startup the container cannot run. This comments out all of the package checks which requires internet.

This removes the ability to add additional_packages into the Exec= line of `bluefin-cli.container` to have them installed at startup.
  • Loading branch information
m2Giles committed Jan 27, 2024
1 parent 2d0ebb2 commit 8f6310e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolboxes/bluefin-cli/Containerfile.bluefin-cli
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ RUN apk update && \
mv /home/linuxbrew /home/homebrew && \
rm /toolbox-packages

# Patch /usr/bin/entrypoint
RUN sed -i '349,489 s/^/#/' /usr/bin/entrypoint && \
sed -i '499,1355 s/^/#/' /usr/bin/entrypoint && \
sed -i '1357 s/^/#/' /usr/bin/entrypoint

# Change root shell to BASH
RUN sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd
1 change: 1 addition & 0 deletions toolboxes/bluefin-cli/packages.bluefin-cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
atuin
brew
eza
sed
starship
sudo-rs

0 comments on commit 8f6310e

Please sign in to comment.