The case for the /usr merge
Posted Jan 27, 2012 1:26 UTC (Fri) by
josh (subscriber, #17465)
In reply to:
The case for the /usr merge by rickmoen
Parent article:
The case for the /usr merge
From just the binaries installed on my system:
/bin/ntfsdecrypt:
libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f72ccfd8000)
libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 (0x00007f72cc7c5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f72cc5ad000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f72cc17f000)
/bin/ping6:
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fce2b78c000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fce2afec000)
/sbin/fsck.cramfs:
libz.so.1 => /usr/lib/libz.so.1 (0x00007f7093762000)
/sbin/mkfs.cramfs:
libz.so.1 => /usr/lib/libz.so.1 (0x00007f28d6b53000)
/sbin/nfnl_osf:
libnfnetlink.so.0 => /usr/lib/libnfnetlink.so.0 (0x00007fa4f20a8000)
/sbin/umount.udisks:
libdbus-glib-1.so.2 => /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2 (0x00007f7af2ca1000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f7af2832000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f7af1c4a000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f7af1a47000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f7af1842000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f7af0fd0000)
/sbin/wpa_supplicant:
libpcsclite.so.1 => /usr/lib/libpcsclite.so.1 (0x00007f108a009000)
libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f1089db7000)
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f10899f1000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f1088964000)
So, making /bin and /sbin self-contained without requiring /usr would require expanding the "minimal" root filesystem to include zlib, libcrypto, PKCS#11, PC/SC smart-card support, gnutls, libtasn, libnfnetlink, several glib libraries, gio, dbus, and OpenSSL.
All because, for example, someone *might* need to run wpa_supplicant to connect to a wireless network to mount /usr over NFS.
And this from Debian, a distribution which goes out of its way to allow its users to continue using insane use cases rather than just saying "don't do that then". (One of Debian's biggest features and biggest faults.)
(
Log in to post comments)