¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
iscsi initrd
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-04-08 (±Ý) 11:33 Á¶È¸ : 7397
±ÛÁÖ¼Ò :
                                
tool.iscsi.initrd.txt
 #!/bin/bash
 
case $1 in
make)
 
mkinitrd -v initrd.img `uname -r`  --force-scsi-probe  $(cat mkinitrd.opts )
;;
 
extract)
rm -rf iscsi.initrd initrd.img.gz
cp initrd.img initrd.img.gz
file initrd.img.gz
gunzip initrd.img.gz
file initrd.img

mkdir iscsi.initrd
cd iscsi.initrd
cpio -i --make-directories < ../initrd.img
;;
 
build)
cd iscsi.initrd
which ip lspci dhclient mknod fdisk bash cat chroot echo ifconfig insmod iscsistart mount sleep | xargs -i{} cp {} bin/
pushd bin
for cmd in ip lspci dhclient fdisk bash cat chroot echo ifconfig insmod iscsistart mount sleep ; do
ldd $cmd | while read fn extra ; do
        if [ -f  $fn ] ; then cp $fn  ../lib
        elif [ -f /lib/$fn ] ; then cp  /lib/$fn ../lib
        else echo $fn ; fi
        done
done
popd
;;
publish)
find ./ | cpio -H newc -o  > ../iscsi.initrd.img
cd ..
gzip -9 initrd.cpio
mv initrd.cpio.gz $path/initrd.img1
;;
esac
 
mkinitrd.opts
 --with=ata_piix  --with=bnx2  --with=dm-log  --with=dm-mem-cache  --with=dm-message  --with=dm-mod  --with=dm-multipath  --with=dm-raid45  --with=dm-region_hash  --with=dm-round-robin  --with=ehci-hcd  --with=ext3  --with=iscsi_ibft  --with=iscsi_tcp  --with=jbd  --with=libata  --with=libiscsi  --with=ohci-hcd  --with=scsi_dh  --with=scsi_mod  --with=scsi_transport_iscsi  --with=sd_mod  --with=uhci-hcd --with=r8169 --with=crc32c --with=e1000e
 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.