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

skip LVM PVs mounted on /dev/loop #2854

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions usr/share/rear/layout/save/GNU/Linux/220_lvm_layout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ local lvs_exit_code
# i.e. lines where pdev does not start with a leading / character:
test "${pdev#/}" = "$pdev" && continue
jsmeix marked this conversation as resolved.
Show resolved Hide resolved

# Skip physical volumes that are created on loop back devices
# i.e. /dev/loop0p2:cinder_volume:996853760:-1:8:8:-1:4096:121686:41046:80640:something
# See https://github.com/rear/rear/issues/2853
[[ "$pdev" = /dev/loop* ]] && continue

# Output lvmdev header only once to DISKLAYOUT_FILE:
if is_false $header_printed ; then
echo "# Format for LVM PVs"
Expand Down