Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64079 - in baselayout 1.10.4 /sbin/rc mount svrdir as ramdisk and not ramfs
Summary: in baselayout 1.10.4 /sbin/rc mount svrdir as ramdisk and not ramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 19:46 UTC by Chin Yee
Modified: 2004-10-14 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chin Yee 2004-09-14 19:46:50 UTC
If I were to set 

svcfstype="ramfs"

in /etc/conf.d/rc, /sbin/rc actually tries to mount /mnt/.init.d as a ramdisk and not ramfs. Below is an abstract of the concerned /sbin/rc codes:-

....
elif get_bootparam "ramfs" || \
      [ "${svcmount}" = "yes" -a "${svcfstype}" = "ramfs" ]
 then
  check_statedir "${tsvcdir}"

  ebegin "Mounting ramdisk 0 at ${tsvcdir}"
  try dd if=/dev/zero of=/dev/ram0 bs=1k count="${svcsize}"
  try /sbin/mke2fs -i 1024 -vm0 /dev/ram0 "${svcsize}"
  try mount -n -t ext2 /dev/ram0 "${tsvcdir}" -o rw
  eend 0
 fi
......

Reproducible: Always
Steps to Reproduce:

Actual Results:
Comment 1 SpanKY gentoo-dev 2004-10-14 18:56:54 UTC
fixed in cvs, will be in 1.11.3+

# FS type that should be used for $svcdir.  Note that you need
# $svcmount above set to "yes" for this to work ...  Currently
# tmpfs, ramfs, and ramdisk are supported (tmpfs is the default).