[systemd-devel] pivot_root to a tmpfs directory to properly umount root

microcai microcai at fedoraproject.org
Thu May 5 04:11:55 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

于 2011年05月05日 18:47, harald at redhat.com 写道:
> With this patch series, it is possible to umount the root device and deconstruct it.
> 
> You can copy a bash to /lib/systemd/system-shutdown/ and it will be executed at the end.
> Then you can cat /proc/mounts with:
> 
> # while read line; do echo $line; done < /proc/mounts
> 
> And your root device should not be showing up.
> 
> See:
> http://www.harald-hoyer.de/files/systemd-pivot.png

Wow~~~ Such a good move!

> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJNwoX5AAoJEKT4Uz7oTANZkDMH/3SK9TH4659x+snH592mJG8a
H0rGvJWU4GMo1nqgpeO/0F20bn4h45Yf/5StEZWg2XNQpypGqXXlZiaAJDiD4sRU
NKYnofdzS1mLdYYy7y+0KUPPIihQkDmmzPQGoKJ+7MbdLUCc9pzsRDr+CrBJ8M6q
gyZ6LMedbrkPdjjSU3Czt9v4pzmAU2tGCLaD/5Xy1mCU2bOYerCR8KSNVMs0zZcH
tWdeX7PS7CYhaYB/CyRvR7YooSgeHDI3yjOmqX1MZUB2PTXubkIn17YTkrPkVq7N
ZiDbSWUtO/79WLeKPuPe9bICsx3kMepFgW85FiN/N7h/rfEftxVGoppYeyic7LY=
=zUjo
-----END PGP SIGNATURE-----


More information about the systemd-devel mailing list