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

switch-root: use MS_REC for /run, unless we are soft-rebooting #28497

Merged
merged 2 commits into from
Jul 24, 2023

Commits on Jul 24, 2023

  1. switch-root: use MS_REC for /run, unless we are soft-rebooting

    There are applications that rely on mounts under /run surviving the
    switch from initrd to rootfs, so use MS_REC unless we are soft
    rebooting.
    
    Follow-up for 7c764d4
    
    Fixes systemd#28452
    bluca committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    b12d41a View commit details
    Browse the repository at this point in the history
  2. test: check if we correctly propagate /run mounts during switch root

    Since 7c764d4 we bind mount certain directories during switch root
    instead of moving the mount directly, and for /run we do this without
    MS_REC. This, unfortunately, leaves all mounts under /run behind
    in the old root, which breaks certain use cases.
    
    See: systemd#28452
    mrc0mmand authored and bluca committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    8256994 View commit details
    Browse the repository at this point in the history