News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

TODO-tmpfs

From FrugalWiki

Jump to: navigation, search


The following packages touch /var/run or /var/lock, which is bad, as we want to have those as a tmpfs in the future. How to fix:

In case it just contains a /var/run/ or /var/lock/, then add Frm /var/run or Frm /var/lock to the end of the build() function in the FrugalBuild.

In case it contains some directory, then you need to add a tmpfiles.d config. Example for cups:

$ ls -ld /var/run/cups/
drwxr-xr-x 3 root lp 4096 Mar 27 23:50 /var/run/cups//
$ ls -ld /var/run/cups/certs/
dr-x--x--x 2 lp sys 4096 Mar 27 23:50 /var/run/cups/certs//

So here is how we create the tmpfiles.d config:

        Fmkdir /etc/tmpfiles.d
        cat > $Fdestdir/etc/tmpfiles.d/cups.conf << EOF
d $Flocalstatedir/run/cups 0755 root lp -
d $Flocalstatedir/run/cups/certs 0511 lp sys -
EOF

See the full commit here.

If you start working on a package, please update the wiki (add "nick@ is doing it"), and once you pushed the fix, remove the package from this page.

Thanks!

Empty list!
Personal tools
Namespaces
Variants
Actions