Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] init script for running mknod and mdadm?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Sun Feb 19, 2012 11:43 am    Post subject: [SOLVED] init script for running mknod and mdadm? Reply with quote

Are there any hooks for running mknod and mdadm to prior to running mount of /etc/fstab?

I'm mounting the root file system over NFS and load the kernel over the net, but I need to mount some local filesystems. It works fine if I log in and do mknod, mdadm --assemble, and then mount -a, but I would like to do this automatically. So are there any pre-defined hooks for this or do I have to make a full blown rc script to handle this?

I can get around it using an initrd script, but that seems a little overkill since I can boot the system fine, but I can't mount the local filesystems and activate swap since they're located on a software raid.


Last edited by pgu on Sun Feb 19, 2012 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Sun Feb 19, 2012 1:07 pm    Post subject: Reply with quote

putting the mknod, mdadm, mount -a, and swapon -a in /etc/local.d/00_raid.start solved the problem even though it would probably have been more correct to make sure that this was run prior to mountall
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum