Skip to content

Changing a shell in a guest VM makes it unbootable #2047

Answered by jandubois
frkd-dev asked this question in Q&A
Discussion options

You must be logged in to vote

You need to run your apk add zsh command in a system provisioning script:

lima/examples/default.yaml

Lines 185 to 195 in b453ded

# Provisioning scripts need to be idempotent because they might be called
# multiple times, e.g. when the host VM is being restarted.
# 🟢 Builtin default: null
# provision:
# # `system` is executed with the root privilege
# - mode: system
# script: |
# #!/bin/bash
# set -eux -o pipefail
# export DEBIAN_FRONTEND=noninteractive
# apt-get install -y vim

Alpine is booted from an ISO and running from a RAM filesystem. Only a few directories like /etc and /usr/local are saved on a persistent volume. S…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frkd-dev
Comment options

@afbjorklund
Comment options

Answer selected by jandubois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guest/alpine Guest: Alpine
3 participants