更新Linux光碟或是ISO檔案內的Kernel核心

更新Linux光碟或是ISO檔案內的Kernel核心

Replacing Linux ISO kernel

此處以rhel7.2做範例

# mount –o loop rhel.iso /mnt/iso

# cp -ri /mnt/iso/* /mnt/new-media/

# cp -ri /mnt/iso/.discinfo /mnt/new-media/

# cp -ri /mnt/iso/.treeinfo /mnt/new-media/

# rm –rf /mnt/new-media/Packages/kernel-3.10.0-327.el7.x86_64.rpm

( Need to remove all rpm that starts with “kernel”, this step needs to compare with the latest kernel packages files that you downloaded. In this case, my downloaded packages are as attached screenshot )

# cp kernel-lt-4.4.102-1.el7.elrepo.x86_64.rpm /mnt/new-media/Packages/

( Need to cp all downloaded kernel related file )

# rm -rf /mnt/new-media/Packages/TRANS.TBL

# cp /mnt/new-media/repodata/*-comps-Server.x86_64.xml /tmp/comps-Server.x86_64.xml

# cd /mnt/new-media/

# createrepo -v –update -d –unique-md-filenames -g /tmp/comps-Server.x86_64.xml .

# mkisofs -r -T -J -V “RHEL-7.2 Server.x86_64” -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../rhel-server7.2-x86_64-dvd.iso .

Note:parameter comes after “-V” must match with inst.stage2= parameter in isolinux.cfg

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *