Re: create empty directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Drake wrote:
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

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux