View previous topic :: View next topic |
Author |
Message |
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Sun Feb 19, 2012 11:43 am Post subject: [SOLVED] init script for running mknod and mdadm? |
|
|
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 |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Sun Feb 19, 2012 1:07 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|