|
|
@ -135,32 +135,28 @@ append_multipath(){
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/etc/"
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/etc/"
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/sbin/"
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/sbin/"
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/lib/"
|
|
|
|
mkdir -p "${TEMP}/initramfs-multipath-temp/lib/"
|
|
|
|
cp -a /lib/ld-* "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
# Copy files to /lib
|
|
|
|
cp -a /lib/libc-* /lib/libc.* "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
for i in /lib/{ld-*,libc-*,libc.*,libdl-*,libdl.*,libsysfs*so*,libdevmapper*so*}
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
do
|
|
|
|
cp -a /lib/libdl-* /lib/libdl.* "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
cp -a "${i}" "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|| gen_die "Could not copy file ${i} for MULTIPATH"
|
|
|
|
cp -a /lib/libsysfs*so* "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
done
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|
|
|
|
cp -a /lib/libdevmapper*so* "${TEMP}/initramfs-multipath-temp/lib" \
|
|
|
|
# Copy files to /sbin
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
for i in /sbin/{multipath,kpartx,mpath_prio_*,devmap_name,dmsetup} /lib64/udev/scsi_id
|
|
|
|
cp -a /sbin/multipath "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
do
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
cp -a "${i}" "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
cp -a /sbin/kpartx "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
|| gen_die "Could not copy file ${i} for MULTIPATH"
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
done
|
|
|
|
cp -a /sbin/mpath_prio_* "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
# Copy files to /bin
|
|
|
|
cp -a /lib64/udev/scsi_id "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
for i in /bin/mountpoint
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
do
|
|
|
|
cp -a /sbin/devmap_name "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
cp -a "${i}" "${TEMP}/initramfs-multipath-temp/bin" \
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|| gen_die "Could not copy file ${i} for MULTIPATH"
|
|
|
|
cp -a /sbin/dmsetup "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
done
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|
|
|
|
cp -a /sbin/dmsetup "${TEMP}/initramfs-multipath-temp/sbin" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|
|
|
|
cp -a /bin/mountpoint "${TEMP}/initramfs-multipath-temp/bin" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for MULTIPATH!'
|
|
|
|
|
|
|
|
if [ -x /sbin/multipath ]
|
|
|
|
if [ -x /sbin/multipath ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
cp /etc/multipath.conf "${TEMP}/initramfs-multipath-temp/etc/" || gen_die 'could not copy /etc/multipath.conf please check this'
|
|
|
|
cp /etc/multipath.conf "${TEMP}/initramfs-multipath-temp/etc/" || gen_die 'could not copy /etc/multipath.conf please check this'
|
|
|
|