user [email protected] usertags 402828 + package-installation thanks
Hi there!
In install.sh, I think we are doing things wrong WRT /var/lock and
/var/run, here the relevant code:
--8<---------------cut here---------------start------------->8---
cat >> "$INST_DIR/etc/fstab" <<__END__
/dev/mtdblock6 /mnt/flash jffs2 defaults,noatime,noauto 0 2
proc /proc proc defaults 0 0
tmpfs /tmp tmpfs defaults,noatime 0 0
tmpfs /var/lock tmpfs defaults,noatime 0 0
tmpfs /var/run tmpfs defaults,noatime 0 0
__END__
--8<---------------cut here---------------end--------------->8---
However, /var/lock and /var/run as tmps can be set on Debian in
/etc/default/rcS, with `man 5 rcS` explaining how:
RAMRUN
Make /var/run/ available as a ram file system (tmpfs). Will
also disable cleaning of /var/run/ during boot. Set to 'yes' to
enable, to 'no' to disable. The size of the tmpfs can be
controlled using TMPFS_SIZE and RUN_SIZE in /etc/defaults/tmpfs.
RAMLOCK
Make /var/lock/ available as a ram file system (tmpfs). Will
also disable cleaning of /var/lock/ during boot. Set to 'yes'
to enable, to 'no' to disable. The size of the tmpfs can be
controlled using TMPFS_SIZE and LOCK_SIZE in
/etc/defaults/tmpfs.
I guess we do not use the /e/d/rcS variables because we want both
mounted with the noatime option. The fact that we do not use /e/d/rcS,
however, causes /var/lock and /var/run to be mounted with different
option than a default Debian:
=====
--- as done by install.sh
+++ as done by /etc/default/rcS
-tmpfs on /var/lock type tmpfs (rw,noatime)
-tmpfs on /var/run type tmpfs (rw,noatime)
+varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
+varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
=====
Is noatime really useful on a tmpfs? Can someone provide proofs,
please?If not, I will change install.sh to use /e/d/rcS instead.
BTW, I have asked for RAMTMP quite a long time ago, but no one has
answered yet:
http://bugs.debian.org/402828
Thx, bye,
Gismo / Luca
pgpT4068HB5pv.pgp
Description: PGP signature
_______________________________________________ pkg-fso-maint mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-fso-maint
