X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-coreutils;h=e54070582fdb91f0a6e5a9bf6360f0d6f803257d;hb=d9a5344c1aa683d051d1a1d5e87f0bba317e299a;hp=a421b6508703ea08ce3f528b0fc355c6c0758ec2;hpb=f9cf3632a64429991fa5e6f556b0c4017e0e9435;p=hvlinux.git 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 $?