(20180210更新) 更換/新Linux ISO/光碟內建Kernel - Linux

By Tristan Cohan
at 2017-12-01T08:15
at 2017-12-01T08:15
Table of Contents
Wordpress短網址:https://goo.gl/iQmd2h
之前就有想過要這樣做
但是一直懶懶的
只是這次老闆剛好交代下來想要做一片這樣的東西
經歷一個周末的燒腦外加不斷打擾有RHCE的同學下
一直撞牆下的產物就這樣產生了
資料除了參考同學還有參考國外CentOS Forum
無圖無音樂無廣告網誌網址:
http://mabospace.myds.me/?p=335
CMD如下
此處以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
---------------------------------------------
目前裝在公司測試機上面跑是暫時沒問題
不曉得站上有沒有前輩有其他更好的做法之類的還請指教
--
之前就有想過要這樣做
但是一直懶懶的
只是這次老闆剛好交代下來想要做一片這樣的東西
經歷一個周末的燒腦外加不斷打擾有RHCE的同學下
一直撞牆下的產物就這樣產生了
資料除了參考同學還有參考國外CentOS Forum
無圖無音樂無廣告網誌網址:
http://mabospace.myds.me/?p=335
CMD如下
此處以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
---------------------------------------------
目前裝在公司測試機上面跑是暫時沒問題
不曉得站上有沒有前輩有其他更好的做法之類的還請指教
--
Tags:
Linux
All Comments

By Gilbert
at 2017-12-02T17:20
at 2017-12-02T17:20

By Belly
at 2017-12-06T08:59
at 2017-12-06T08:59

By Caroline
at 2017-12-08T00:31
at 2017-12-08T00:31

By Olivia
at 2017-12-12T21:29
at 2017-12-12T21:29

By Jake
at 2017-12-14T09:20
at 2017-12-14T09:20

By Andy
at 2017-12-16T04:27
at 2017-12-16T04:27

By George
at 2017-12-16T11:44
at 2017-12-16T11:44

By Zora
at 2017-12-20T06:55
at 2017-12-20T06:55
Related Posts
使用mount, 並修改檔案擁有者權限

By Caitlin
at 2017-11-29T00:23
at 2017-11-29T00:23
複製個PTT站應該很簡單?

By Jack
at 2017-11-28T16:13
at 2017-11-28T16:13
Centos 7 (1611)看不到圖形介面

By Yuri
at 2017-11-28T15:18
at 2017-11-28T15:18
c shell script不會return

By Eden
at 2017-11-28T14:51
at 2017-11-28T14:51
konsole中無法使用gcin

By Belly
at 2017-11-28T14:15
at 2017-11-28T14:15