iso образ для обновления биоса через IPMI

Некоторые ipmi не умеют грузить .img и хотят обязательно валидный iso. В таком случае берем первый попавшийся iso с DOS’ом, например этот, и делаем примерно так:
yukra-ThinkPad-X230 ~ # mount -r freedos.iso /mnt/
yukra-ThinkPad-X230 ~ # mkdir /tmp/1
yukra-ThinkPad-X230 ~ # cd /tmp/1
yukra-ThinkPad-X230 1 # cp -r /mnt/* .
yukra-ThinkPad-X230 1 # umount /mnt
yukra-ThinkPad-X230 1 # cd isolinux/data/
yukra-ThinkPad-X230 data # mv fdboot.img fdboot.img.gz
yukra-ThinkPad-X230 data # gzip -d fdboot.img.gz
yukra-ThinkPad-X230 data # mount -o loop,offset=512 fdboot.img /mnt/
yukra-ThinkPad-X230 data # cd /mnt/bios/
yukra-ThinkPad-X230 bios # rm -rf *
<Кладем сюда нужные файлы>
yukra-ThinkPad-X230 bios # cd /tmp/1/isolinux/data/
yukra-ThinkPad-X230 data # umount /mnt
yukra-ThinkPad-X230 data # gzip fdboot.img
yukra-ThinkPad-X230 data # mv fdboot.img.gz fdboot.img
yukra-ThinkPad-X230 data # cd /tmp/1
yukra-ThinkPad-X230 1 # mkisofs -o /tmp/output.iso -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table .
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage: Directories too deep for './freedos/setup/odin/help/docinfo/bi/nls' (7) max is 6; ignored - continuing.
genisoimage: To include the complete directory tree,
genisoimage: use Rock Ridge extensions via -R or -r,
genisoimage: or allow deep ISO9660 directory nesting via -D.
Size of boot image is 4 sectors -> No emulation
60.19% done, estimate finish Thu Mar 10 11:50:06 2016
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 80156
Path table size(bytes): 442
Max brk space used 5f000
8315 extents written (16 MB)
yukra-ThinkPad-X230 1 #

You can leave a response, or trackback from your own site.

Leave a Reply

Subscribe to RSS Feed