02_multipath

来自「Linux Multipath Source Code」· 代码 · 共 35 行

TXT
35
字号
#!/bin/sh## store the multipath tool in the initrd# hotplug & udev will take care of calling it when appropriate# this tool is statically linked against klibc : no additional libs#cp /sbin/multipath $INITRDDIR/sbincp /sbin/devmap_name $INITRDDIR/sbincp /sbin/kpartx $INITRDDIR/sbin## feed the dependencies too# scsi_id is dynamicaly linked, so store the libs too#cp /sbin/scsi_id $INITRDDIR/sbincp /bin/mountpoint $INITRDDIR/binPROGS="/sbin/scsi_id /bin/mountpoint"LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \awk '{print $3}'` for i in $LIBSdo	mkdir -p `dirname $INITRDDIR/$i`	cp $i $INITRDDIR/$idone## config file ?#if [ -f /etc/multipath.conf ]then	cp /etc/multipath.conf $INITRDDIR/etc/fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?