diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-17 11:31:03 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-18 09:24:02 -1000 |
commit | 311a818539bb36af2bb0821190d8cbab9db04170 (patch) | |
tree | 62969e986748e8feb7597849861164bdf0f6c636 /scripts | |
parent | 68db44e1c07a094e07ac4912f11b60a2592895f0 (diff) | |
download | anaconda-311a818539bb36af2bb0821190d8cbab9db04170.tar.gz anaconda-311a818539bb36af2bb0821190d8cbab9db04170.tar.xz anaconda-311a818539bb36af2bb0821190d8cbab9db04170.zip |
Place all mount.* commands in /sbin
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mk-images | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index d4cac465f..db2fa9df0 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -598,9 +598,15 @@ 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 /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 |