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

Support for booting without initramfs (rebased) #1401

Closed

Commits on Jan 9, 2018

  1. ostree-prepare-root: enabler for simpler kernel arg

    With the current approach, when ostree-prepare-root is used
    on the kernel command line as init=, it always assumes that
    the next value in the argument list is a path to the sysroot.
    The code for falling back to a default path (if none is provided),
    would only work if init= is the last arg in the argument list.
    We can not rely on that and have to explicitly provide the
    path to the sysroot. Which defeats the purpose of a default
    path selection code.
    
    To keep command line neater assume that sysroot is on / when
    using ostree-prepare-root as init. This probably is what most
    people want anyways. Also _ostree_kernel_args* API assumes
    that args are space separated list. Which is problematic for:
    "init=${ostree}/usr/lib/ostree/ostree-prepare-root /" as it
    gets split in two.
    gatispaeglis authored and wmanley committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    aa7cbb5 View commit details
    Browse the repository at this point in the history
  2. deploy: add --karg-none argument

    If the current deployment has "rootwait root=/dev/sda2",
    but the new deployment does not need "rootwait" anymore,
    there is no way to clear this arg at the moment (as opposed
    to "karg=root=", which overrides any earlier argument with
    the same name). With "--karg-none" users can now clear all
    the previous args and set new "root=":
    
    ostree admin deploy --karg-none --karg=root=LABEL=rootfs
    gatispaeglis authored and wmanley committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    ef51271 View commit details
    Browse the repository at this point in the history
  3. Support for booting without initramfs

    Previously when initramfs-* was not found in a deployment's
    boot directory, it was assumed that rootfs is prepared for
    ostree booting by a kernel patch.
    
    With this patch, the behaviour changes to be - if initramfs-*
    is not found, assume that system is using a static
    ostree-prepare-root as init process. Booting without initramfs
    is a common use case on embedded systems. This approach is
    also more convenient, than having to patch the kernel.
    gatispaeglis authored and wmanley committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    cd0f55f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ddb2242 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a97c054 View commit details
    Browse the repository at this point in the history