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.
This commit is contained in:
parent
ef1f437a7f
commit
4b52bc68e6
@ -7,15 +7,18 @@ use/deflogin:
|
||||
@$(call xport,USERS)
|
||||
@$(call xport,GROUPS)
|
||||
@$(call xport,SPEC_USER)
|
||||
@$(call xport,LIVE_USER)
|
||||
|
||||
# some presets
|
||||
# USERS variable chunk format is "login:passwd:admin:sudo"
|
||||
# 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
|
||||
@$(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
|
||||
use/deflogin/desktop: use/deflogin/live \
|
||||
|
11
features.in/deflogin/live/image-scripts.d/50-livecd-user
Executable file
11
features.in/deflogin/live/image-scripts.d/50-livecd-user
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user