mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
fix: vminstall.sh never makes root the guest user (WSL runs as root): theupriser then
This commit is contained in:
1 parent
cb247b9cc3
commit
d5cfadf3bb
1 file changed
+2
-1
@@ -8,7 +8,7 @@
|
|||||||
# --iso <file> the live ISO (default $VM_DIR/cachyos.iso, e.g. a
|
# --iso <file> the live ISO (default $VM_DIR/cachyos.iso, e.g. a
|
||||||
# Steamify CachyOS build later; it must be archiso-based and
|
# Steamify CachyOS build later; it must be archiso-based and
|
||||||
# have cachyos-installer)
|
# have cachyos-installer)
|
||||||
# Env: VM_DIR (see common.sh), VM_USER (default: your host username),
|
# Env: VM_DIR (see common.sh), VM_USER (default: your host username; theupriser when that is root),
|
||||||
# VM_PASSWORD (steamify), VM_SSH_KEY (private key to authorize; default
|
# VM_PASSWORD (steamify), VM_SSH_KEY (private key to authorize; default
|
||||||
# ~/.ssh/steamify-vm_ed25519, asked once when that doesn't exist), REPO (shared as 9p `repo`, default ../steamify-cachyos),
|
# ~/.ssh/steamify-vm_ed25519, asked once when that doesn't exist), REPO (shared as 9p `repo`, default ../steamify-cachyos),
|
||||||
# VM_CACHE (host dir for the packages, default ~/vms/pkg-cache; empty = none),
|
# VM_CACHE (host dir for the packages, default ~/vms/pkg-cache; empty = none),
|
||||||
@@ -21,6 +21,7 @@ set -euo pipefail
|
|||||||
here="$(cd "$(dirname "$0")" && pwd)"
|
here="$(cd "$(dirname "$0")" && pwd)"
|
||||||
repo="$(cd "$here/.." && pwd)"
|
repo="$(cd "$here/.." && pwd)"
|
||||||
[[ -n "${VM_USER:-}" ]] || VM_USER="$(id -un)"
|
[[ -n "${VM_USER:-}" ]] || VM_USER="$(id -un)"
|
||||||
|
[[ "$VM_USER" != root ]] || VM_USER=theupriser # root can't be the guest user (WSL runs as root)
|
||||||
export VM_USER
|
export VM_USER
|
||||||
. "$here/common.sh"
|
. "$here/common.sh"
|
||||||
# The pacman package cache, on the host and shared by every VM you install
|
# The pacman package cache, on the host and shared by every VM you install
|
||||||
|
|||||||
Reference in new issue
Block a user