Artificial intelligent assistant

Mount a tmpfs folder on startup (volatile) with a created subfolder Currently using Debian 9.5 with this `fstab` file: # /etc/fstab: static file system information. # /dev/mmcblk1p1 / ext4 noatime,errors=remount-ro 0 1 tmpfs /var/volatile tmpfs defaults,x-mount.mkdir 0 0 Now, if the folder `/var/volatile` doesn't exist, it will be created (`x-mount.mkdir`). What would be the correct way of having a subfolder (e.g) like `/var/volatile/subfolder` just created after the mounting procedure succeeds? I want this subfolder to be created before systemd continues with its tasks until finalizing startup.

After exploring systemd, I stumbled upon a greet discovery. It turns out there is no need to create a custom service to deal with this as systemd already provides a solution (`systemd-tmpfiles`) for this purpose. It is a structured and configurable method to manage temporary directories and files.

< <

Just create a file `/etc/tmpfiles.d/volatile-subfolder.conf` with this content:


d /var/volatile/subfolder 0755 root root - -


And reboot.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy ed9d4bcbfe76c58a1a5f1e3e23e3031c