root file是NFS mount,如何開機自動執行? - Linux

Table of Contents

一般來說設定開機自動執行是寫在/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

--

All Comments

Zenobia avatarZenobia2016-01-14
直接傳到給kernel就好了,nfsroot設定一下
Ethan avatarEthan2016-01-15
我centos6.2之前有用一樣的做法 rc.loacl是有效的