On Tue, May 27, 2014 at 03:13:59PM +0200, Werner Flamme wrote:
Dr. Werner Fink [27.05.2014 09:11]:
the command that already exists to do it -- specifically, /bin/mount, which, for some stupid reason, they insisted on moving to /usr/bin/mount.
This is not true:
grep /bin/mount systemd-210/ -rs systemd-210/src/core/mount.c: /* We need to make sure that /bin/mount is always called in systemd-210/src/core/mount.c: "/bin/mount", systemd-210/src/core/mount.c: "/bin/mount", systemd-210/src/core/mount.c: * before the SIGCHLD of /bin/mount. */ systemd-210/src/core/mount.h: MOUNT_MOUNTING, /* /bin/mount is running, but the mount is not done yet. */ systemd-210/src/core/mount.h: MOUNT_MOUNTING_DONE, /* /bin/mount is running, and the mount is done. */ systemd-210/src/core/execute.h: * /bin/mount it is run in the same process group as us so systemd-210/src/remount-fs/remount-fs.c: arguments[0] = "/bin/mount"; systemd-210/src/remount-fs/remount-fs.c: execv("/bin/mount", (char **) arguments); systemd-210/src/remount-fs/remount-fs.c: log_error("Failed to execute /bin/mount: %m"); systemd-210/src/remount-fs/remount-fs.c: log_error("/bin/mount for %s exited with exit status %i.", s, si.si_status); systemd-210/src/remount-fs/remount-fs.c: log_error("/bin/mount for %s terminated by signal %s.", s, signal_to_string(si.si_status));
Nice try, Werner :-)
on openSUSE 13.1:
# ll /bin/mount lrwxrwxrwx 1 root root 14 Apr 22 07:25 /bin/mount -> /usr/bin/mount # rpm -qf /bin/mount util-linux-2.23.2-10.1.x86_64
# ll /sbin/ | grep -c /usr/sbin/ 112 # ll /sbin/ | grep -c /usr/bin/ 10
This change had been done by the maintainer and/or submitter of e.g. util-linux and not by systemd upstream. The only thing, which is/was the problem that (auto)config(ure) does not know about legacy paths like /bin/mount, /sbin/fsck, /bin/sh, /bin/csh, /bin/ln, ... which caused a lot of work in past for the package maintainers. In short, the junction of / and /usr does not imply that legacy commands must be moved from /bin to /usr/bin, nor from /sbin to /usr/sbin IMHO. Nevertheless the junction of / and /usr now allows to use shared libraries below /usr even for programs below /bin and /sbin. Be aware that e.g. NFS4 for a seperate /usr share does not work without moving nearly 60% of the shared libraries to /lib(64) making a NFS /usr share superfluously. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr