We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c368a3 commit fd2b495Copy full SHA for fd2b495
1 file changed
container/debian/cuttlefish-podcvd-prerequisites.sh
@@ -16,8 +16,10 @@
16
17
set -e
18
19
+username="$USER"
20
+: "${username:?username is empty}"
21
+
22
setup_device_availability() {
- local username=$(logname)
23
# Execute both usermod and setfacl, to make podcvd working right after
24
# executing this script and rebooting the machine.
25
sudo usermod -aG kvm "$username"
@@ -27,7 +29,6 @@ setup_device_availability() {
27
29
}
28
30
31
setup_rootless_podman() {
32
if grep -q "^$username:" /etc/subuid /etc/subgid; then
33
echo "Skip adding subuid/subgid. However, you may need to configure" \
34
"it manually. Watch here for details." \
0 commit comments