generator: Stop creating `/run/ostree-booted`
authorColin Walters <walters@verbum.org>
Sun, 23 Jul 2023 14:40:20 +0000 (10:40 -0400)
committerColin Walters <walters@verbum.org>
Sun, 23 Jul 2023 14:40:20 +0000 (10:40 -0400)
This must have always been dead code.  We're trying to iterate
towards a place where it's only `ostree-prepare-root.c` which
parses the `ostree=` kernel argument, and canonically sets up
`/run/ostree-booted`.

src/switchroot/ostree-system-generator.c

index d10919043f4c5cb17396bd2d377f399995fb35e3..03a9bb423498f521d4a8f1d4be9c5ec3d91791cd 100644 (file)
@@ -67,14 +67,6 @@ main (int argc, char *argv[])
   if (!ostree_cmdline)
     exit (EXIT_SUCCESS);
 
-  /* See comments in ostree-prepare-root.c for this.
-   *
-   * It's a lot easier for various bits of userspace to check for
-   * a file versus parsing the kernel cmdline.  So let's ensure
-   * the stamp file is created here too.
-   */
-  touch_run_ostree ();
-
   {
     g_autoptr (GError) local_error = NULL;
     if (!ostree_cmd__private__ ()->ostree_system_generator (ostree_cmdline, arg_dest, NULL,