UFS Question on rc.d mount scripts using fstab

Alain De Vos

Member

Reaction score: 13
Messages: 80

The script /etc/rc.d/root mounts the root filesystem.
The script /etc/rc.d/mountlate mounts the filesystems in fstab with late options.
But which script mounts the other filesystems in fstab,i.e.the ones which are not the root filesystem nor have the explicit late option.
[ And what if the mount fails in this script ? , how is the fstab pass 2 option handled ?]
 
OP
OP
Alain De Vos

Alain De Vos

Member

Reaction score: 13
Messages: 80

Thanks. I modified , /etc/rc.d/root ; /etc/rc.d/mountcritlocal ; /etc/rc.subr a bit :).
 

ShelLuser

Son of Beastie

Reaction score: 1,726
Messages: 3,546

Thanks. I modified , /etc/rc.d/root ; /etc/rc.d/mountcritlocal ; /etc/rc.subr a bit :).
Why on earth would you want to do that?

That is just asking for problems, if not now then surely in the future. Most definitely after your next upgrade.
 

PMc

Well-Known Member

Reaction score: 135
Messages: 409

AFAIK there is a nice diff&merge for these files during upgrade...
So, obviousely, somebody thinks people might modify them.
I for my part try to avoid that and try to accomplish things mostly ba changing the order these files are executed, but, well, that does not work in all cases.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,672
Messages: 30,574

I modified , /etc/rc.d/root ; /etc/rc.d/mountcritlocal ; /etc/rc.subr a bit
That does beg the question, why? What's missing? What can't you get working without the modifications?

I for my part try to avoid that and try to accomplish things mostly ba changing the order these files are executed, but, well, that does not work in all cases.
He might have a good reason for it yes, that makes the reason more interesting to know. Most of the time however it's a simple case of not understanding what can be done with the existing scripts.
 
  • Like
Reactions: PMc
Top