Commit 4b52bc68 authored by Anton Midyukov's avatar Anton Midyukov

deflogin: create live user on first run

This makes installing from livecd cleaner, making it unnecessary to remove the live user in the preinstall script.
parent ef1f437a
...@@ -7,15 +7,18 @@ use/deflogin: ...@@ -7,15 +7,18 @@ use/deflogin:
@$(call xport,USERS) @$(call xport,USERS)
@$(call xport,GROUPS) @$(call xport,GROUPS)
@$(call xport,SPEC_USER) @$(call xport,SPEC_USER)
@$(call xport,LIVE_USER)
# some presets # some presets
# USERS variable chunk format is "login:passwd:admin:sudo" # USERS variable chunk format is "login:passwd:admin:sudo"
# GROUPS are just stashed there to include USERS logins created # GROUPS are just stashed there to include USERS logins created
# basic livecd: root and altlinux users with no password at all # basic livecd: root with no password, live user is created at startup
use/deflogin/live: use/deflogin use/deflogin/live: use/deflogin
@$(call set,ROOTPW_EMPTY,1) @$(call set,ROOTPW_EMPTY,1)
@$(call add,USERS,altlinux::1:1) @$(call try,LIVE_USER,altlinux)
@$(call add,LIVE_PACKAGES,livecd-user)
@$(call add,DEFAULT_SERVICES_ENABLE,livecd-user)
# real thing: some control added # real thing: some control added
use/deflogin/desktop: use/deflogin/live \ use/deflogin/desktop: use/deflogin/live \
......
#!/bin/sh -efu
# setup settings for live user
[ -f /etc/sysconfig/livecd-user.conf ] || exit 0
cat > /etc/sysconfig/livecd-user.conf << EOF
LIVECD_LOGIN="${GLOBAL_LIVE_USER:-}"
LIVECD_GROUPS="${GLOBAL_GROUPS:-}"
LIVECD_ADMIN=1
LIVECD_SUDO=1
EOF
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