Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ignition to create core user #74

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions overlay/usr/lib/dracut/modules.d/40ignition-conf/base.ign
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ignition": {
"version": "3.0.0"
},
"passwd": {
"users": [
{
"name": "core",
"gecos": "CoreOS Admin",
"groups": [
"adm",
"sudo",
"systemd-journal",
"wheel"
]
}
]
}
}
12 changes: 12 additions & 0 deletions overlay/usr/lib/dracut/modules.d/40ignition-conf/module-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

depends() {
echo ignition
}

install() {
inst "$moddir/base.ign" \
"/usr/lib/ignition/base.ign"
}
1 change: 0 additions & 1 deletion overlay/usr/lib/systemd/system-preset/42-coreos.preset
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Presets here that eventually should live in the generic fedora presets
enable coreos-growpart.service
enable coreos-useradd-core.service
enable console-login-helper-messages-*.service
enable console-login-helper-messages-*.path
# This one is from https://github.com/coreos/ignition-dracut
Expand Down
14 changes: 0 additions & 14 deletions overlay/usr/lib/systemd/system/coreos-useradd-core.service

This file was deleted.