Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
matchbox-flatcar: disable all LVM mappings
Browse files Browse the repository at this point in the history
Since the disks may or not be not empty, any detected LVM partitions may
automatically be activated on bootup. This can disrupt the installation
and we need to disable them first. This was done for all "vg" prefixes
but we can do it for any volume names. Any non-LVM entries are ignored
with a small error log output.

See flatcar/Flatcar#332
  • Loading branch information
pothos authored and ipochi committed Jun 17, 2021
1 parent 609764a commit fd92d6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ storage:
#!/bin/bash -ex
# unmount any leftovers at the beginning before we modify the disk the mount uses
umount /tmp/oemfs || true
lvchange -an /dev/mapper/* || true
curl --retry 10 "${ignition_endpoint}?{{.request.raw_query}}&os=installed" -o ignition.json
flatcar-install \
%{~ if install_to_smallest_disk ~}
Expand Down
4 changes: 2 additions & 2 deletions pkg/assets/generated_assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd92d6d

Please sign in to comment.