[問題]root file是NFS mount,如何開機自動執行?

看板Linux作者 (狐狸跳)時間10年前 (2016/01/11 13:49), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
一般來說設定開機自動執行是寫在/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

01/11 16:56, , 1F
直接傳到給kernel就好了,nfsroot設定一下
01/11 16:56, 1F

01/11 20:12, , 2F
我centos6.2之前有用一樣的做法 rc.loacl是有效的
01/11 20:12, 2F
文章代碼(AID): #1Maq9ymx (Linux)