diff options
-rw-r--r-- | generic/etc/fstab | 1 | ||||
-rw-r--r-- | rules/rootfs.in | 9 | ||||
-rw-r--r-- | rules/rootfs.make | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/generic/etc/fstab b/generic/etc/fstab index f412061fa..31aad248d 100644 --- a/generic/etc/fstab +++ b/generic/etc/fstab @@ -14,3 +14,4 @@ usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 none /var/log tmpfs defaults,mode=0755,uid=0,gid=0 0 0 none /var/run tmpfs defaults,mode=0755,uid=0,gid=0 0 0 none /var/lock tmpfs defaults,mode=0755,uid=0,gid=0 0 0 +none /var/tmp tmpfs defaults,mode=1777,uid=0,gid=0 0 0 diff --git a/rules/rootfs.in b/rules/rootfs.in index 0abde6b90..3141a0fe7 100644 --- a/rules/rootfs.in +++ b/rules/rootfs.in @@ -233,6 +233,15 @@ config ROOTFS_VAR_SPOOL_CRON Unless you want to mount a tmpfs on /var you should say yes here. +config ROOTFS_VAR_TMP + bool + prompt "/var/tmp" + default y + help + Create a /var/tmp directory in the root filesystem. + Unless you want to mount a tmpfs on /var you should + say yes here. + endif # ROOTFS_VAR endif # ROOTFS diff --git a/rules/rootfs.make b/rules/rootfs.make index 949eb9d9e..f5f886f7e 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -158,6 +158,9 @@ endif ifdef PTXCONF_ROOTFS_VAR_SPOOL_CRON @$(call install_copy, rootfs, 0, 0, 0755, /var/spool/cron) endif +ifdef PTXCONF_ROOTFS_VAR_TMP + @$(call install_copy, rootfs, 0, 0, 0755, /var/tmp) +endif # # |