Skip to contentSkip to conversation

create empty directory

DISCUSSION Daniel Drake 3 participants 3 messages Jun 30, 2009 – Jul 1, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I'm creating a dracut module.
What's the suggested way to create an empty directory in the initramfs from the install script?

This will be used as a mount point by scripts in my module. I realise I could just mkdir it during boot, but it would seem better to create it in the initramfs.

Thanks,
Daniel

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 10 lines · Daniel Drake

Hi,

I'm creating a dracut module.
What's the suggested way to create an empty directory in the initramfs from the install script?

This will be used as a mount point by scripts in my module. I realise I could just mkdir it during boot, but it would seem better to create it in the initramfs.

mkdir

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Daniel Drake
Quoted 6 lines · Daniel Drake

Hi,

I'm creating a dracut module.
What's the suggested way to create an empty directory in the initramfs from the install script?

Quoted 6 lines

This will be used as a mount point by scripts in my module. I realise I could just mkdir it during boot, but it would seem better to create it in the initramfs.

Thanks,
Daniel

Have a look at modules/95nfs/install:

mkdir -p "$initdir/var/lib/nfs/rpc_pipefs"

Regards,
Philippe
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html