Bug#764303: systemd: improve handling of some settings from /etc/default/tmpfs

Bob Bib bobbib at ukr.net
Tue Oct 7 02:31:05 BST 2014


Package: systemd
Version: 208-8
Severity: wishlist

Dear Maintainer,

it looks like systemd ignores some settings in
"/etc/default/tmpfs" config file from "initscripts" package.

I have 2 variables set there: "RAMTMP=yes" & "TMP_SIZE=4G";
systemd enables tmpfs mounted as "/tmp",
but, unfortunately, ignores the size (in my case, it gets set to 1.9G).

According to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674755#63
it's controlled only by systemd postinst;
I've looked at that, and it seems that only "RAMTMP" is taken into account:

...
# Do a one-time migration of the RAMTMP setting
if dpkg --compare-versions "$2" lt "204-8"; then
    if [ -f /etc/default/rcS ]; then
        . /etc/default/rcS
    fi
    if [ -f /etc/default/tmpfs ]; then
        . /etc/default/tmpfs
    fi
    if [ "$RAMTMP" = "yes" ]; then
        # systemctl enable will work even when systemd is not the active PID 1.
        systemctl enable tmp.mount || true
    fi
fi
...

----
Best wishes,
Bob



More information about the Pkg-systemd-maintainers mailing list