自 動 安 裝 與 升 級
ç²¾é試è®
ç²¾é試è®
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
第 4 章 : <strong>自</strong> <strong>動</strong> <strong>安</strong> <strong>裝</strong> <strong>與</strong> <strong>升</strong> <strong>級</strong><br />
❹ 執 行 mkisofs 來 產 生 <strong>自</strong> 製 <strong>安</strong> <strong>裝</strong> 光 碟 的 ISO 檔 吧 !! 這 裡 先 指 定 將 產 生 的 ISO 檔 ,<br />
儲 存 成 上 層 目 錄 的 myrhel5.iso。<br />
❺ 使 用 ISOLINUX 作 為 <strong>安</strong> <strong>裝</strong> 光 碟 的 啟 <strong>動</strong> 載 入 器 。<br />
❻ 將 光 碟 的 磁 卷 識 別 碼 (Volumn ID) 設 定 成 "My RHEL5 Install DVD"。<br />
❼ 把 目 前 工 作 目 錄 中 所 有 檔 案 加 入 <strong>安</strong> <strong>裝</strong> 光 碟 中 。<br />
❽ 開 始 產 生 ISO 檔 吧 !! 這 可 能 需 要 一 些 時 間 , 請 耐 心 等 候 。<br />
❾ 完 成 後 , 檢 視 一 下 myrhel5.iso 的 類 型 <strong>與</strong> 識 別 碼 是 否 正 確 。 看 起 來 是 正 確 的 ,<br />
恭 喜 了 , 大 功 告 成 !!<br />
產 生 檢 驗 碼<br />
產 生 ISO 檔 後 , 接 著 我 們 必 須 為 Red Hat Enterprise Linux 5 <strong>安</strong> <strong>裝</strong> 光 碟 加 上 MD5 的 檢 查<br />
碼 , 否 則 Anaconda 可 能 會 認 為 這 不 是 一 個 正 確 的 Red Hat Enterprise Linux 5 <strong>安</strong> <strong>裝</strong> 光<br />
碟 , 而 無 法 進 行 <strong>安</strong> <strong>裝</strong> 的 作 業 。<br />
在 Red Hat Enterprise Linux 5 中 ,Red Hat 提 供 了 一 個 名 為 anaconda-runtime 套<br />
件 , 這 個 套 件 提 供 了 一 堆 <strong>與</strong> Anaconda 有 關 的 工 具 。anaconda-runtime 中 提 供 了<br />
一 個 名 為 implantisomd5 的 工 具 , 請 您 使 用 這 個 工 具 來 產 生 <strong>安</strong> <strong>裝</strong> 光 碟 的 MD5 檢 查<br />
碼 :<br />
範 例 4.5. 產 生 <strong>安</strong> <strong>裝</strong> 光 碟 檢 驗 碼<br />
[root@linux rhel5source]# /usr/lib/anaconda-runtime/implantisomd5 \<br />
> --force ../myrhel5.iso<br />
Inserting md5sum into iso image...<br />
md5 = 0a3cfc15407f7611cc0d7b5d3c873b3a<br />
Inserting fragment md5sums into iso image...<br />
fragmd5 = b144d8e2c69cb881cdaf4dab5f735d87c7d87486cf17feba69a5a4f63d53<br />
frags = 20<br />
Setting supported flag to 0<br />
[root@linux rhel5source]#<br />
121