Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
4b52bc68
Commit
4b52bc68
authored
Oct 13, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
config.mk
features.in/deflogin/config.mk
+5
-2
50-livecd-user
features.in/deflogin/live/image-scripts.d/50-livecd-user
+11
-0
No files found.
features.in/deflogin/config.mk
View file @
4b52bc68
...
@@ -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 \
...
...
features.in/deflogin/live/image-scripts.d/50-livecd-user
0 → 100755
View file @
4b52bc68
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment