Subversion Repositories se3

Rev

Blame | Last modification | View Log | RSS feed

# preparation des ficihers seven en vue du boot pxe
#$Id: prepare-seven.sh 6663 2012-01-30 06:51:14Z dbo $
# http://www.ultimatedeployment.org/win7pxelinux1.html

tftproot=/tftpboot
seven_disk=/var/se3/unattended/install/os/$1

# extraction des fichiers de boot pxe seven

cd $tftproot
/usr/bin/wimextract $seven_disk/sources/boot.wim //windows/boot/pxe pxeboot.n12
mv pxeboot.n12 pxeboot.com
/usr/bin/wimextract $seven_disk/sources/boot.wim //windows/boot/pxe bootmgr.exe
/usr/bin/wimextract $seven_disk/sources/boot.wim //windows/boot/pxe wdsnbp.com
cp $seven_disk/boot/boot.sdi $tftproot

# creation des menus ?

cp -r $seven_disk/boot/bcd $tftproot/seven64
/usr/bin/bcdedit.pl $tftproot/seven32/bcd /winpe.wim /boot.sdi INFO=10.0.0.1:seven64
cp $tftproot/wdsnbp.com $tftproot/seven64/wdsnbp.0

cp -r $seven_disk/boot/bcd $tftproot/seven32
/usr/bin/bcdedit.pl $tftproot/system32/bcd /winpe.wim /boot.sdi INFO=10.0.0.1:seven32
cp $tftproot/wdsnbp.com $tftproot/seven32/wdsnbp.0

cd /var/se3/unattended/install/seven/wim
/usr/bin/updatewim $seven_disk/sources/boot.wim /tftproot/winpe.wim actionfile.txt


# recherche de l'index de l'image seven pro a installer

/usr/share/se3/scripts/sevenxml.py

( a l'arrache !)

type=$(grep -A1 "EditionID"  $seven_disk/sources/ei.cfg | tail -1)
regexp="<FLAGS>" . $type . "</FLAGS>"
index=$(/usr/bin/wimxmlinfo $seven_disk/sources/install.wim | sed '
s/\(<\/[A-Z]*>\)/\1\n/g' | sed 's/></>\n</g' | grep -B36 $regexp | grep "<IMAGE INDEX=" | sed 's/<IMAGE INDEX="\([0-9]\)">$/\1/'