create empty directory
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
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
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