All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 7442] New: rootfs remount does not work as expected with sysvinit
Date: Mon, 15 Sep 2014 05:15:57 +0000 (UTC)	[thread overview]
Message-ID: <bug-7442-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=7442

           Summary: rootfs remount does not work as expected with sysvinit
           Product: buildroot
           Version: 2014.08
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: joymarquis at hotmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Problem
=======
The rootfs can not do remount correctly, with the default sysvinit string:
 * rwmo::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW


Possible root cause
===================
The rootfs can do remount as expected, by removing the comment string and
changing the string to:
 * rwmo::sysinit:/bin/mount -o remount,rw /


Program information
===================
FYI: The manual execution for commands below are working as expected:
 * /bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
 * /bin/mount -o remount,rw

mount version (mount -V):
 * mount from util-linux 2.24.2 (libmount 2.24.0: debug, assert)
init version (strings /sbin/init | tail):
 * @(#) init 2.88  26-Mar-2010  miquels at cistron.nl



Debug method
============
The problem is debugged and observed by adding follow lines into /etc/inittab
tst1::sysinit:/bin/mount > /dev/tst1
rwmo::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
tst2::sysinit:/bin/mount > /dev/tst2
rwmt::sysinit:/bin/mount -o remount,rw /
tst3::sysinit:/bin/mount > /dev/tst3


Debug log
=========
After login, the three files proved the problem:
==> /dev/tst1 <==
none on /dev type devtmpfs (rw,relatime,size=516720k,nr_inodes=23632,mode=755)
/dev/sda1 on / type ext3
(ro,relatime,errors=continue,user_xattr,barrier=0,data=ordered)
proc on /proc type proc (rw,relatime)

==> /dev/tst2 <==
none on /dev type devtmpfs (rw,relatime,size=516720k,nr_inodes=23632,mode=755)
/dev/sda1 on / type ext3
(ro,relatime,errors=continue,user_xattr,barrier=0,data=ordered)
proc on /proc type proc (rw,relatime)

==> /dev/tst3 <==
none on /dev type devtmpfs (rw,relatime,size=516720k,nr_inodes=23632,mode=755)
/dev/sda1 on / type ext3
(rw,relatime,errors=continue,user_xattr,barrier=0,data=ordered)
proc on /proc type proc (rw,relatime)

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

             reply	other threads:[~2014-09-15  5:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15  5:15 bugzilla at busybox.net [this message]
2014-09-15  5:22 ` [Buildroot] [Bug 7442] rootfs remount does not work as expected with sysvinit bugzilla at busybox.net
2014-10-24 23:30 ` bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-7442-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.