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

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

 



On 03/17/2009 06:19 PM, Jesse Keating wrote:
On Tue, 2009-03-17 at 17:06 -1000, David Cantrell wrote:
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 /

What's this extra instbin call doing here?

That was my mistake. Thanks for catching that. Patch is the same except I'm removing the 'instbin $IMGPATH /' line.


      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

------------------------------------------------------------------------

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


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
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