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

harv-install: deactivate LVM in spite of global_filter #711

Merged
merged 1 commit into from
Apr 19, 2024

Commits on Apr 19, 2024

  1. harv-install: deactivate LVM in spite of global_filter

    harvester/os2#86 adds a global_filter to
    /etc/lvm/lvm.conf to avoid activing LVM on the host.  Unfortunately,
    dracut-initqueue runs _very_ early in the boot process (before any of
    the elemental stages are run), so this filter isn't taken into account
    on boot, and LVM volumes are still potentially activated.  Later, when
    we try to run `blkdeactivate` in `harv-install`, it doesn't work,
    because the filter _is_ active then, so it skips deactivation and then
    the subsequent disk repartitioning fails.  We can work around this by
    setting up a temporary lvm config which has that global_filter stripped
    out.
    
    Related issue: harvester/harvester#5398
    
    Signed-off-by: Tim Serong <tserong@suse.com>
    tserong committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    0984a2e View commit details
    Browse the repository at this point in the history