#!/bin/bash
iso=openmediavault_6.0-16-amd64.iso
_pwd=$(pwd);
mount ${iso} /mnt3
mkdir /tmp/mnt3;cd /tmp/mnt3
zcat /mnt3/install/initrd.gz |cpio -i
mkdir /tmp/mnt3/cdrom
cd /mnt3;find .|cpio -pamVd /tmp/mnt3/cdrom
cd /tmp/mnt3;find .|cpio -o -H newc |gzip -9 >${_pwd}/initrd.img
cp /mnt3/install/vmlinuz ${_pwd}/vmlinuz
rm -rf /tmp/mnt3;
cd ${_pwd};
grub 安裝異常,需重新安裝
參考資料 ipxe script
dhcp
kernel http://192.168.1.1/vmlinuz
initrd http://192.168.1.1/initrd.img
boot
b. Memdisk
set base <web address>
kernel ${base}/memdisk
initrd ${base}/<iso file name>
imgargs memdisk iso raw
boot
沒有留言:
張貼留言