FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-18-2009, 03:19 AM
Jesse Keating
 
Default Place all mount.* commands in /sbin

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?

> 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
--
Jesse Keating
Fedora -- Freedom˛ is a feature!
identi.ca: http://identi.ca/jkeating
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-18-2009, 06:22 PM
David Cantrell
 
Default Place all mount.* commands in /sbin

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-18-2009, 08:21 PM
Jesse Keating
 
Default Place all mount.* commands in /sbin

On Wed, 2009-03-18 at 09:22 -1000, David Cantrell wrote:
> > 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.

Ok, looks good otherwise.

--
Jesse Keating
Fedora -- Freedom˛ is a feature!
identi.ca: http://identi.ca/jkeating
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:22 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org