Bug#843433: Wrong paths for /bin/mount when compiled on merged-usr system

Michael Biebl biebl at debian.org
Sun Nov 6 17:07:04 GMT 2016


Source: systemd
Version: 232-2
Severity: serious
User: md at linux.it
Usertags: usrmerge

As reported on IRC

<jrtc27> mbiebl:
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=sparc64&ver=232-2&stamp=1478397115
has split-usr enabled, but because it finds /usr/bin/mount at configure
time, it uses that rather than /bin/mount
<jrtc27> (chroots are created with debootstrap from unstable, which does
usr-merge since 21st Oct)
<jrtc27> then, on systems without usr-merge, boom


We should probably update
debian/patches/debian/Use-different-default-paths-for-various-binaries.patch
and use a different search path which prefers /bin and /sbin, like

-AC_PATH_PROG([MOUNT_PATH], [mount], [/usr/bin/mount], [$PATH:/usr/sbin:/sbin])
-AC_PATH_PROG([UMOUNT_PATH], [umount], [/usr/bin/umount], [$PATH:/usr/sbin:/sbin])
+AC_PATH_PROG([MOUNT_PATH], [mount], [/usr/bin/mount], [/sbin:/bin:$PATH])
+AC_PATH_PROG([UMOUNT_PATH], [umount], [/usr/bin/umount], [/sbin:/bin:$PATH])


(we should do that for all occurences of AC_PATH_PROG)


Thoughts? Does anyone have a nicer solution?




-- Package-specific info:

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.125
ii  udev             232-2

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list