게시물 1,376건
   
iscsi initrd
글쓴이 : 최고관리자 날짜 : 2011-04-08 (금) 11:33 조회 : 7828
글주소 :
                                
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.