From 4fa668651596451ca06bc02ba4be6aad836f5a82 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 6 Aug 2013 13:42:34 +0200 Subject: [PATCH] initramfs: use busybox mountpoint rather than copying /bin/mountpoint /bin/mountpoint was copied to the initramfs only when --multipath is enabled. Now, I'm not sure why we need the full blown mountpoint when there is busybox mountpoint which exposes the same cmdline interface. Furthermore, bb mountpoint can be used to determine if a filesystem is already mounted. --- gen_initramfs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 9385dc1..095d352 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -131,7 +131,7 @@ append_busybox() { # Set up a few default symlinks local default_applets="[ ash sh mount uname ls echo cut cat flock stty" - default_applets+=" readlink" + default_applets+=" readlink mountpoint" for i in ${BUSYBOX_APPLETS:-${default_applets}}; do rm -f ${TEMP}/initramfs-busybox-temp/bin/$i ln -s busybox ${TEMP}/initramfs-busybox-temp/bin/$i || @@ -206,7 +206,6 @@ append_multipath(){ # Copy files copy_binaries "${TEMP}/initramfs-multipath-temp" \ - /bin/mountpoint \ /sbin/{multipath,kpartx,mpath_prio_*,devmap_name,dmsetup} \ /{lib,lib64}/{udev/scsi_id,multipath/*so}