[anaconda-storage-branch PATCH 3/6] Place all mount.* commands in /sbin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is required for 'mount -t TYPE SOURCE MOUNTPOINT' to work.
NTFS is supported through fuse, so we don't have it listed in
/proc/filesystems, but if /sbin/mount.ntfs exists, then we can
mount ntfs like any other filesystem.
---
 scripts/mk-images |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index d4cac46..34a276a 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -598,9 +598,16 @@ makeinitrd() {
     install -m 644 $IMGPATH/etc/nsswitch.conf $MBD_DIR/etc/nsswitch.conf
 
     instbin $IMGPATH /usr/bin/mount $MBD_DIR /sbin/mount
-    instbin $IMGPATH /usr/sbin/mount.nfs $MBD_DIR /sbin/mount.nfs
+    for mountcmd in $IMGPATH/usr/sbin/mount.* ; do
+        cmd="$(basename $mountcmd)"
+        instbin $IMGPATH /usr/sbin/$cmd $MBD_DIR /sbin/$cmd
+    done
+    instbin $IMGPATH /
     instbin $IMGPATH /usr/bin/umount $MBD_DIR /sbin/umount
-    ln -s mount.nfs $MBD_DIR/sbin/umount.nfs
+    for umountcmd in $IMGPATH/usr/sbin/umount.* ; do
+        cmd="$(basename $umountcmd)"
+        instbin $IMGPATH /usr/sbin/$cmd $MBD_DIR /sbin/$cmd
+    done
 
     instbin $IMGPATH /usr/sbin/udevd $MBD_DIR /sbin/udevd
     instbin $IMGPATH /usr/sbin/udevadm $MBD_DIR /sbin/udevadm
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux