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

ostree-prepare-root: Log journal message after finding deployment #1842

Closed
wants to merge 2 commits into from

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Apr 16, 2019

Log a structured journal message when resolving the deployment path.
This will be used by the rpm-ostree history command to find past
deployments the system has booted into.

Log a structured journal message when resolving the deployment path.
This will be used by the `rpm-ostree history` command to find past
deployments the system has booted into.
Makefile-switchroot.am Outdated Show resolved Hide resolved
src/switchroot/ostree-prepare-root.c Show resolved Hide resolved
@jlebon
Copy link
Member Author

jlebon commented Apr 17, 2019

Updated! ⬆️

Example journal message:

{
        "MESSAGE_ID" : "7170336a73ba4601bad31af888aa0df7",
        "CODE_FUNC" : "resolve_deploy_path",
        "_HOSTNAME" : "localhost",
        "_TRANSPORT" : "journal",
        "CODE_LINE" : "84",
        "__CURSOR" : "s=ac841b7fb55148fe85da234eac834c91;i=20e2;b=69c048b5f0e14341b0f611b165f9e4e6;m=401347;t=586bf513413d8;x=128dbf23233a1943",
        "_CAP_EFFECTIVE" : "3fffffffff",
        "_SYSTEMD_SLICE" : "system.slice",
        "_PID" : "531",
        "_SYSTEMD_INVOCATION_ID" : "a5c48f75d0de4f9cb1b74c19933d7b9b",
        "_SOURCE_REALTIME_TIMESTAMP" : "1555531142792122",
        "_UID" : "0",
        "SYSLOG_IDENTIFIER" : "ostree-prepare-root",
        "DEPLOYMENT_PATH" : "/ostree/deploy/fedora-coreos/deploy/f6d648bafb0461e2772228498ab28664ec0d28244e56692f66bbf9c4307700f6.0",
        "_GID" : "0",
        "_MACHINE_ID" : "34167625069f4adc968c753ab2be139a",
        "CODE_FILE" : "src/switchroot/ostree-prepare-root.c",
        "MESSAGE" : "Resolved OSTree target to: /sysroot/ostree/deploy/fedora-coreos/deploy/f6d648bafb0461e2772228498ab28664ec0d28244e56692f66bbf9c4307700f6.0",
        "DEPLOYMENT_DEVICE" : "64515",
        "_COMM" : "ostree-prepare-",
        "DEPLOYMENT_INODE" : "4025",
        "__REALTIME_TIMESTAMP" : "1555531142796248",
        "_SELINUX_CONTEXT" : "kernel",
        "_SYSTEMD_CGROUP" : "/system.slice/ostree-prepare-root.service",
        "__MONOTONIC_TIMESTAMP" : "4199239",
        "_BOOT_ID" : "69c048b5f0e14341b0f611b165f9e4e6",
        "_SYSTEMD_UNIT" : "ostree-prepare-root.service"
}

@cgwalters
Copy link
Member

@rh-atomic-bot r+ 8c8587a

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants