UFS Question on rc.d mount scripts using fstab

Alain De Vos

Active Member

Reaction score: 36
Messages: 177

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

Active Member

Reaction score: 36
Messages: 177

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

ShelLuser

Son of Beastie

Reaction score: 1,752
Messages: 3,569

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

Aspiring Daemon

Reaction score: 180
Messages: 514

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: 8,057
Messages: 31,638

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