switchroot,generator: Only read /proc/cmdline once
authorColin Walters <walters@verbum.org>
Wed, 16 Aug 2023 13:02:11 +0000 (09:02 -0400)
committerColin Walters <walters@verbum.org>
Wed, 16 Aug 2023 13:05:19 +0000 (09:05 -0400)
commit28aed49d87902aff650d1df90e3b72d64c70729d
treecf8276ba11727b750575c1f52123c94e2c96abdb
parentc94388f3dd0e4617f6183f74288e8827e06e61f7
switchroot,generator: Only read /proc/cmdline once

Change the helper function to parse an existing cmdline instead
of potentially reading `/proc/cmdline` multiple times.
src/libostree/ostree-impl-system-generator.c
src/switchroot/ostree-mount-util.h
src/switchroot/ostree-prepare-root-static.c
src/switchroot/ostree-prepare-root.c