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

Always copy /etc/multipath/bindings to the TARGET_FS_ROOT #1394

Merged
merged 1 commit into from
Jul 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ if multipath -d >/dev/null ; then

[ ! -d $TARGET_FS_ROOT/etc/multipath ] && mkdir -p $TARGET_FS_ROOT/etc/multipath

if [ ! -f $TARGET_FS_ROOT/etc/multipath/bindings ] ; then
[ -f /etc/multipath/bindings ] && cp /etc/multipath/bindings $TARGET_FS_ROOT/etc/multipath/bindings
# Always copy multipath bindings file to the $TARGET_FS_ROOT. In case of migration to different multipath diks (migration)
# /etc/multipath/bindings has been updated in the recovery image and result must ALWAYS be copied to the TARGET_FS_ROOT
# before mkinitrd operation.
if [ -f /etc/multipath/bindings ] ; then
cp /etc/multipath/bindings $TARGET_FS_ROOT/etc/multipath/bindings && LogPrint "/etc/multipath/bindings copied to $TARGET_FS_ROOT"
LogIfError "Failed to copy /etc/multipath/bindings to $TARGET_FS_ROOT"
fi

# Cleaning /etc/multipath/wwids file and update it with new wwids.
Expand Down