Hi. Look:
[EMAIL PROTECTED] ~ $ mount
/dev/hda2 on / type reiserfs (rw,noatime,nodiratime,notail)
proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
udev on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
roottmp on /tmp type tmpfs (rw,size=512M)
devshm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
[EMAIL PROTECTED] /etc $ cat fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts>
<dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 none swap sw,pri=1
0 0
/dev/hda2 / reiserfs
noatime,nodiratime,notail 0 1
/dev/hdc /media/cdrom auto noauto,user,ro
0 0
#/dev/fd0 /media/floppy auto noauto,user
0 0
/dev/sda1 /media/sda1 vfat noauto,user
0 0
vartmp /var/tmp tmpfs
size=1024M,defaults,noauto 0 0
#coloquei em noauto por falta de swap
roottmp /tmp tmpfs
size=512M,defaults 0 0
homejorgetmp /home/jorge/tmp tmpfs
size=1024M,defaults,noauto,user 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults
0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
devshm /dev/shm tmpfs
nodev,nosuid,noexec 0 0
I believe that the problem is in system/initial/filldev:
[EMAIL PROTECTED] /etc/initng/system $ cat initial.i
#!/sbin/itype
# This is a i file, used by initng parsed by install_service
# NAME:
# DESCRIPTION:
# WWW:
# This one should be ran first.
# Its purpose is to mount /proc and /sys.
service system/initial/mountvirtfs {
critical;
script start = {
# test, if all necessary directories exist.
if [ ! -d /proc -o ! -d /sys ]
then
echo "The /sys or /proc is missing, can't mount it!" >&2
echo "Please sulogin, remount rw and create them." >&2
exit 1 # It can't work. Critical!
fi
mount -n -t proc proc /proc &
mount -n -t sysfs sys /sys &
wait
exit 0
};
}
service system/initial/filldev {
need = system/initial/mountvirtfs;
use = system/udev/mountdev;
critical; # This script can't be fail.
script start = {
echo "Mounting devpts at /dev/pts ..."
/bin/mkdir -p /dev/pts &&
/bin/mount -n -t devpts -o gid=5,mode=0620
none /dev/pts &
echo "Mounting devshm at /dev/shm ..."
/bin/mkdir -p /dev/shm &&
/bin/mount -n -t tmpfs none /dev/shm &
wait
exit 0
};
}
service system/initial/loglevel {
# Set the console loglevel to 1 for a cleaner boot
# the logger should anyhow dump the ring-0 buffer at start to the
# logs, and that with dmesg can be used to check for problems
exec start = /bin/dmesg -n 1;
# Increase the debug level a bit
exec stop = /bin/dmesg -n 2;
}
# This is the basic system/initial
virtual system/initial {
critical;
need = system/initial/loglevel system/initial/mountvirtfs
system/initial/filldev;
use = system/selinux/dev;
use = system/udev;
}
The service system/initial/filldev mounts /dev/shm without consulting
fstab. Then later some ifile will call mount -a and /dev/shm will get
mounted again. I guess...
Can you solve this?
Thank you for your attention and your excellent work on initng.
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng