From: Phillip Susi <psusi@ubuntu.com>
To: "Thomas Bächler" <thomas@archlinux.org>, "Karel Zak" <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: pivot_root depreciated?
Date: Thu, 30 Jan 2014 10:20:26 -0500 [thread overview]
Message-ID: <52EA6DBA.6000903@ubuntu.com> (raw)
In-Reply-To: <52EA66CC.9070107@archlinux.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/30/2014 9:50 AM, Thomas Bächler wrote:
> At least mkinitcpio now generates a fresh "initrd" to return to
> during system shutdown instead of keeping around the actual
> initrd.
I see, so at shutdown the initramfs is re-loaded into a tmpfs that is
then pivot_root()ed to? And at boot time, pivot_root is not used?
> Initrd is a bad idea. It's a ramdisk of fixed size with an actual
> file system on it. Instead, we now use initramfs, which is simply
> an archive which is extracted directly into rootfs. And as I said
> above, you can't pivot rootfs.
Ok, that sounds like it is what I was trying to remember. They said
hell no, rootfs is rootfs, and there will be no pivoting it. I guess
I assumed that meant pivot_root() was dead, not thinking you could
still use it after chrooting to a non rootfs.
> 4) chdir("/realroot"); mount --move /realroot ., chroot(".");
Wait, how do you move a mount into itself? I thought this was just
the chdir and chroot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS6m26AAoJEI5FoCIzSKrwUIcH/0Gq64aC4Sr0bb9vqhNYTgeY
TiSxsR4lx3r0g3Oja91j0az8TXeCdpb2LakY+TOxMYEtA6JyJ5rF9kFeo5imbVT4
XYj/40gmirs4m021gGNgAXIqyt7+RDMZh2KGSFN6zuUTX39HlvIqjBrPzDp2Howa
ASCfcOn6LujS5F1iaBK7aSkBdSQhq3WhsQAJN4OJ3DAjOoO74F07AoziPc0vG0Cn
66bkvEvMHTYpKULoJOB7YPTtkDqp3IjyrBx5kKPB1DKYGDKXQX2y4I0ZNb/VRkWn
RUvnFneULyWIWZRWb0z2Rf+NfdpkYU+Bfkg6TpnGquE4hKHZpTw5DrUB6Uv3UX4=
=Sgny
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-01-30 15:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 15:04 pivot_root depreciated? Phillip Susi
2014-01-29 15:29 ` Dave Reisner
2014-01-30 8:16 ` Karel Zak
2014-01-30 14:15 ` Phillip Susi
2014-01-30 14:50 ` Thomas Bächler
2014-01-30 15:20 ` Phillip Susi [this message]
2014-01-30 16:13 ` Thomas Bächler
2014-02-03 10:31 ` Michal Soltys
2014-02-03 11:10 ` Kevin Wilson
2014-01-31 9:17 ` Karel Zak
2014-01-31 9:21 ` Thomas Bächler
2014-01-30 14:54 ` Dave Reisner
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=52EA6DBA.6000903@ubuntu.com \
--to=psusi@ubuntu.com \
--cc=kzak@redhat.com \
--cc=thomas@archlinux.org \
--cc=util-linux@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).