Hello,
I've got a boot script that i've written and put into /etc/init.d/. it's called lpart. Basically I want it to run as early as possible because it automatically partitions the hard drive using sfdisk. In the depend{} section of script I have 'before X' where X is just about every boot service that I could think of and i used 'rc-update add lpart boot' to get it to start on boot. However, for some strange reason, lpart isn't actually executed until after modules are loaded and such. I'm stumped as to why the depend{} stuff isn't working as it should be.
Please help.
I didn't find the right solution from the Internet.
References:-
https://bit.ly/2z7jbTt
Instructional Video Company
Thanks