作者wolfyang (狐狸跳)
看板Linux
標題[問題]root file是NFS mount,如何開機自動執行?
時間Mon Jan 11 13:49:46 2016
一般來說設定開機自動執行是寫在/etc/rc.local
但我的系統是使用NFS mount的diskless client
是透過PXE的方式開機導入kernel和initrd,然後root file是透過NFS掛載
我設定了/etc/rc.local在我的client上,但開機完之後卻不會自動執行。
請問有人知道我問題點在哪嗎?
OS的root file是centos 6.7
diskless client的設定是參考red hat指南
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/diskless-nfs-config.html
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.146.86.112
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1452491388.A.C3B.html
→ hizuki: 直接傳到給kernel就好了,nfsroot設定一下 01/11 16:56
推 nashsai: 我centos6.2之前有用一樣的做法 rc.loacl是有效的 01/11 20:12