From unknown Sun Sep 21 01:06:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35167: About chroot some question on centos6 kernel: Resent-From: "=?UTF-8?Q?=E5=BE=80=E4=BA=8B=E9=9A=8F=E9=A3=8E?=" Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 06 Apr 2019 03:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35167 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 35167@debbugs.gnu.org X-Debbugs-Original-To: "bug-coreutils" Reply-To: gin9145yan@sina.com Received: via spool by submit@debbugs.gnu.org id=B.155452101724252 (code B ref -1); Sat, 06 Apr 2019 03:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2019 03:23:37 +0000 Received: from localhost ([127.0.0.1]:46455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCbvZ-0006J2-5e for submit@debbugs.gnu.org; Fri, 05 Apr 2019 23:23:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCbrr-0006Cr-It for submit@debbugs.gnu.org; Fri, 05 Apr 2019 23:19:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:39965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCbrm-0007jd-59 for submit@debbugs.gnu.org; Fri, 05 Apr 2019 23:19:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCbrl-00085d-5C for bug-coreutils@gnu.org; Fri, 05 Apr 2019 23:19:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: **** X-Spam-Status: No, score=4.3 required=5.0 tests=BAYES_50, CHARSET_FARAWAY_HEADER,FREEMAIL_FROM,FROM_EXCESS_BASE64,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCbrk-0007iq-Al for bug-coreutils@gnu.org; Fri, 05 Apr 2019 23:19:37 -0400 Received: from mail7-217.sinamail.sina.com.cn ([202.108.7.217]:58180) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1hCbrj-0007dq-Ag for bug-coreutils@gnu.org; Fri, 05 Apr 2019 23:19:36 -0400 Received: from webmail-14-100.pop3.fmail.dbl.sinanode.com (HELO webmail.sinamail.sina.com.cn)([10.41.14.100]) by sina.com with SMTP id 5CA8187E00007F8B; Sat, 6 Apr 2019 11:09:50 +0800 (CST) X-Sender: gin9145yan@sina.com X-SMAIL-MID: 36907393934 Received: by webmail.sinamail.sina.com.cn (Postfix, from userid 495) id 0D9EC2D00091; Sat, 6 Apr 2019 11:09:50 +0800 (CST) Date: Sat, 06 Apr 2019 11:09:50 +0800 Received: from gin9145yan@sina.com([122.71.224.138]) by m0.mail.sina.com.cn via HTTP; Sat, 06 Apr 2019 11:09:50 +0800 (CST) From: "=?UTF-8?Q?=E5=BE=80=E4=BA=8B=E9=9A=8F=E9=A3=8E?=" MIME-Version: 1.0 X-Priority: 3 X-MessageID: 5ca8187e97543d_201904 X-Originating-IP: [10.41.14.100] X-Mailer: Sina WebMail 4.0 Content-Type: multipart/alternative; boundary="=-sinamail_alt_776528233abffc9babc1245933dd8186" Message-Id: <20190406030950.0D9EC2D00091@webmail.sinamail.sina.com.cn> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 202.108.7.217 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: OS centos6.10 kernel vmlinuz-2.6.32-754.el6.x86_64 hello! grub-install in a new disk /mnt/boot; copy /bin/bash and *.so ; chroot /mnt/sysroot is ok!exit and ctrl+d use the new disk startup, "dracut war [...] Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gin9145yan[at]sina.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=gin9145yan%40sina.com; ip=209.51.188.92; r=debbugs.gnu.org] 0.0 HTML_MESSAGE BODY: HTML included in message 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily 1.3 XPRIO Has X-Priority header X-Mailman-Approved-At: Fri, 05 Apr 2019 23:23:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-sinamail_alt_776528233abffc9babc1245933dd8186 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline T1MgY2VudG9zNi4xMAprZXJuZWwgdm1saW51ei0yLjYuMzItNzU0LmVsNi54ODZfNjQKaGVsbG8h CmdydWItaW5zdGFsbCAgaW4gYSBuZXcgZGlzayAvbW50L2Jvb3Q7Y29weSAvYmluL2Jhc2ggYW5k ICouc28gOyBjaHJvb3QgL21udC9zeXNyb290IGlzIG9rIWV4aXQgYW5kIGN0cmwrZAp1c2UgdGhl IG5ldyBkaXNrIHN0YXJ0dXAsCiJkcmFjdXQgd2FybmluZyBjYW4ndCBtb3VudCByb290IGZpbGVz eXN0ZW1tb3VudCA6L2Rldi9zZGEzIGFscmVhZHkgbW91bnRlZCBvciAvc3lzcm9vdCBidXN5Cm1v dW50OiBhY2NvcmRpbmcgdG8gbXRhYiwgL2Rldi9zZGIzIGlzIGFscmVhZHkgbW91bnRlZCBvbiAv bW50L3N5c3Jvb3QiCmRvbid0IGNocm9vdCAvbW50L3N5c3Jvb3QgCnN0YXJ0dXAg4oCU4oCUc3Vj Y2VzcwoKd2h5PyEgIEkgZG9uJ3Qgbm93ISAKCnRoYW5rIHlvdQo= --=-sinamail_alt_776528233abffc9babc1245933dd8186 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline PGRpdj5PUyBjZW50b3M2LjEwPGJyPmtlcm5lbCB2bWxpbnV6LTIuNi4zMi03NTQuZWw2Lng4Nl82 NDwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+aGVsbG8hPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRp dj5ncnViLWluc3RhbGwmbmJzcDsgaW4gYSBuZXcgZGlzayAvbW50L2Jvb3Q7Y29weSAvYmluL2Jh c2ggYW5kICouc28gOyBjaHJvb3QgL21udC9zeXNyb290IGlzIG9rITwvZGl2PjxkaXY+ZXhpdCBh bmQgY3RybCtkPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48ZGl2PnVzZSB0aGUgbmV3IGRpc2sg c3RhcnR1cCw8YnI+ImRyYWN1dCB3YXJuaW5nIGNhbid0IG1vdW50IHJvb3QgZmlsZXN5c3RlbTwv ZGl2Pm1vdW50IDovZGV2L3NkYTMgYWxyZWFkeSBtb3VudGVkIG9yIC9zeXNyb290IGJ1c3k8YnI+ PGRpdj5tb3VudDogYWNjb3JkaW5nIHRvIG10YWIsIC9kZXYvc2RiMyBpcyBhbHJlYWR5IG1vdW50 ZWQgb24gL21udC9zeXNyb290IjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+ZG9uJ3QgY2hyb290 IC9tbnQvc3lzcm9vdCA8YnI+PC9kaXY+PGRpdj5zdGFydHVwIOKAlOKAlHN1Y2Nlc3M8YnI+PC9k aXY+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj53aHk/ISZuYnNwOyBJIGRvbid0IG5vdyEgPGJy PjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+dGhhbmsgeW91PGJyPjwvZGl2Pg== --=-sinamail_alt_776528233abffc9babc1245933dd8186-- From unknown Sun Sep 21 01:06:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35167: About chroot some question on centos6 kernel: Resent-From: Bob Proulx Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 22 Apr 2019 04:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35167 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=BE=80=E4=BA=8B=E9=9A=8F=E9=A3=8E?= Cc: 35167@debbugs.gnu.org Received: via spool by 35167-submit@debbugs.gnu.org id=B35167.155590902217173 (code B ref 35167); Mon, 22 Apr 2019 04:58:02 +0000 Received: (at 35167) by debbugs.gnu.org; 22 Apr 2019 04:57:02 +0000 Received: from localhost ([127.0.0.1]:49578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIR0n-0004Sc-FU for submit@debbugs.gnu.org; Mon, 22 Apr 2019 00:57:02 -0400 Received: from havoc.proulx.com ([96.88.95.61]:45158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIR0l-0004SF-C1; Mon, 22 Apr 2019 00:57:00 -0400 Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 6FD3B33A; Sun, 21 Apr 2019 22:56:53 -0600 (MDT) Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 3A95121174; Sun, 21 Apr 2019 22:56:53 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 1B7522DC7E; Sun, 21 Apr 2019 22:56:52 -0600 (MDT) Date: Sun, 21 Apr 2019 22:56:52 -0600 From: Bob Proulx Message-ID: <20190421225134463116725@bob.proulx.com> References: <20190406030950.0D9EC2D00091@webmail.sinamail.sina.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190406030950.0D9EC2D00091@webmail.sinamail.sina.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 35167 thanks Hello 往事随风, 往事随风 wrote: > OS centos6.10 > kernel vmlinuz-2.6.32-754.el6.x86_64 > hello! > grub-install in a new disk /mnt/boot;copy /bin/bash and *.so ; chroot /mnt/sysroot is ok!exit and ctrl+d Sounds like 'chroot' worked correctly in the above sequence. > use the new disk startup, > "dracut warning can't mount root filesystemmount :/dev/sda3 already mounted or /sysroot busy > mount: according to mtab, /dev/sdb3 is already mounted on /mnt/sysroot" > don't chroot /mnt/sysroot > startup ——success > > why?! I don't now! I have no idea either. This does not look like a bug report for the 'chroot' command from the GNU Coreutils project however. It looks like a bug report against 'dracut'. As such there isn't anything that we can do about it here. I think that is why no one else of the team responded. It didn't seem like anything that anyone here could do anything about. Also the chroot command line utility is simply a thin wrapper around the chroot(2) kernel system call. It does whatever the kernel does. Therefore I am going to close the bug in our ticket system. However please do respond and add any further discussion. We will see it. If something looks like a bug the ticket will be re-opened. Bob