[SM-Grimoire-Bugs] [Bug 14665] New: init.d mountroot.sh: echo >/etc/mtab improvements

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Thu Aug 21 14:36:31 EDT 2008


           Summary: init.d mountroot.sh: echo >/etc/mtab improvements
           Product: Codex
           Version: stable grimoire
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: smgl
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: BearPerson at gmx.net

Around line 33 of mountroot.sh, we do

echo >/etc/mtab

This has two problems: it fails rather strangely
when /etc/mtab is a symlink to /proc/mounts
and it's also using smgl_function's echo.

It should probably be something like

if ! [[ -h /etc/mtab ]] ;then
  builtin echo >/etc/mtab

Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the SM-Grimoire-Bugs mailing list