multipath-tools: remove old multipath/{01_udev, 02_multipath} scripts
PATCH 1/1 multipath-tools: remove old multipath/{01_udev, 02_multipath} scripts
Irrelevant nowadays.
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- multipath/01_udev | 50 -------------------------------------------------- multipath/02_multipath | 32 -------------------------------- 2 files changed, 82 deletions(-) delete mode 100755 multipath/01_udev delete mode 100755 multipath/02_multipath
multipath/01_udev deleted +0 -50
@@ -1,50 +0,0 @@ -#!/bin/sh -# -cp /sbin/udev $INITRDDIR/sbin/hotplug -cp /sbin/udevstart $INITRDDIR/sbin/ -cp /bin/mountpoint $INITRDDIR/bin/ -cp /bin/readlink $INITRDDIR/bin/ - -PROGS="/sbin/udev /sbin/udevstart /bin/mountpoint /bin/readlink" -LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \ -awk '{print $3}'` -for i in $LIBS -do - mkdir -p `dirname $INITRDDIR/$i` - cp $i $INITRDDIR/$i -done - -# -# config files -# -if [ -d /etc/dev.d ] -then - cp -a /etc/dev.d $INITRDDIR/etc/ -fi - -if [ -d /etc/udev ] -then - cp -a /etc/udev $INITRDDIR/etc/ -fi - -# -# run udev from initrd -# -cat <<EOF >| $INITRDDIR/scripts/10_udev.sh - -cd / -mount -nt proc proc proc -mount -nt sysfs sysfs sys -mount -nt tmpfs tmpfs dev || mount -nt ramfs ramfs dev -mount -nt tmpfs tmpfs tmp || mount -nt ramfs ramfs tmp - -#modprobe dm-mod -#modprobe dm-multipath -/sbin/udevstart - -umount -n tmp -umount -n sys -umount -n proc - -sleep 2 -EOF
multipath/02_multipath deleted +0 -32
@@ -1,32 +0,0 @@ -#!/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/sbin -cp /sbin/kpartx $INITRDDIR/sbin - -# -# feed the dependencies too -# scsi_id is dynamicaly linked, so store the libs too -# -cp /lib/udev/scsi_id $INITRDDIR/lib/udev/ -cp /bin/mountpoint $INITRDDIR/bin - -PROGS="/lib/udev/scsi_id /bin/mountpoint" -LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \ -awk '{print $3}'` -for i in $LIBS -do - mkdir -p `dirname $INITRDDIR/$i` - cp $i $INITRDDIR/$i -done - -# -# config file ? -# -if [ -f /etc/multipath.conf ] -then - cp /etc/multipath.conf $INITRDDIR/etc/ -fi
Signature · 1 line
2.10.2
Quoted 1 line · Xose Vazquez Perez
Irrelevant nowadays.
You can delete these two files safely. They are pretty old, unmaintained and unused by distributions.
Quoted 105 lines
Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- multipath/01_udev | 50 -------------------------------------------------- multipath/02_multipath | 32 -------------------------------- 2 files changed, 82 deletions(-) delete mode 100755 multipath/01_udev delete mode 100755 multipath/02_multipathmultipath/01_udev deleted +0
-50@@ -1,50 +0,0 @@ -#!/bin/sh -# -cp /sbin/udev $INITRDDIR/sbin/hotplug -cp /sbin/udevstart $INITRDDIR/sbin/ -cp /bin/mountpoint $INITRDDIR/bin/ -cp /bin/readlink $INITRDDIR/bin/ - -PROGS="/sbin/udev /sbin/udevstart /bin/mountpoint /bin/readlink" -LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \ -awk '{print $3}'` -for i in $LIBS -do - mkdir -p `dirname $INITRDDIR/$i` - cp $i $INITRDDIR/$i -done - -# -# config files -# -if [ -d /etc/dev.d ] -then - cp -a /etc/dev.d $INITRDDIR/etc/ -fi - -if [ -d /etc/udev ] -then - cp -a /etc/udev $INITRDDIR/etc/ -fi - -# -# run udev from initrd -# -cat <<EOF >| $INITRDDIR/scripts/10_udev.sh - -cd / -mount -nt proc proc proc -mount -nt sysfs sysfs sys -mount -nt tmpfs tmpfs dev || mount -nt ramfs ramfs dev -mount -nt tmpfs tmpfs tmp || mount -nt ramfs ramfs tmp - -#modprobe dm-mod -#modprobe dm-multipath -/sbin/udevstart - -umount -n tmp -umount -n sys -umount -n proc - -sleep 2 -EOFmultipath/02_multipath deleted +0
-32@@ -1,32 +0,0 @@ -#!/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/sbin -cp /sbin/kpartx $INITRDDIR/sbin - -# -# feed the dependencies too -# scsi_id is dynamicaly linked, so store the libs too -# -cp /lib/udev/scsi_id $INITRDDIR/lib/udev/ -cp /bin/mountpoint $INITRDDIR/bin - -PROGS="/lib/udev/scsi_id /bin/mountpoint" -LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \ -awk '{print $3}'` -for i in $LIBS -do - mkdir -p `dirname $INITRDDIR/$i` - cp $i $INITRDDIR/$i -done - -# -# config file ? -# -if [ -f /etc/multipath.conf ] -then - cp /etc/multipath.conf $INITRDDIR/etc/ -fi