Commit 741d3491 authored by amnesia's avatar amnesia

Fix permissions at early live-config stage.

Else other live-config scripts, such as 003-sudo, are unable to do their job
with the live user's credentials.
parent 2c0dfeaf
#!/bin/sh
LIVE_USER_UID=999
LIVE_USER_GID=999
Bootstrap_permissions ()
{
echo "- bootstrapping permissions"
chown -R "${LIVE_USER_UID}":"${LIVE_USER_GID}" "/home/${LIVE_USERNAME}"
# Creating state file
touch /var/lib/live/config/permissions-bootstrap
}
Bootstrap_permissions
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment