From: gobo72 Date: Tue, 6 Jul 2010 04:23:21 +0000 (+0000) Subject: -Fixed bug when moving "mv" command from /usr/bin to /bin X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=7a241252d60ff447f09cf5c417d7c79a209f0bce;p=hvlinux.git -Fixed bug when moving "mv" command from /usr/bin to /bin --- diff --git a/stage2/cis-coreutils b/stage2/cis-coreutils index a421b65..e540705 100755 --- a/stage2/cis-coreutils +++ b/stage2/cis-coreutils @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -o errexit # First argument of this script is the package name @@ -21,13 +21,15 @@ make install # Move some programs to their proper FHS locations: mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin -mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin -mv -v /usr/bin/chroot /usr/sbin +# Now specify new path to mv to eliminate error message: +# "/usr/bin/mv: No such file or directory" +/bin/mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin +/bin/mv -v /usr/bin/chroot /usr/sbin # Some of the scripts in the LFS-Bootscripts package depend on head # sleep and nice. As /usr may not be available during the early stages # of booting, those binaries need to be on the root partition: -mv -v /usr/bin/{head,sleep,nice} /bin +/bin/mv -v /usr/bin/{head,sleep,nice} /bin # Return last error exit $?