diff --git a/CLFS/master.sh b/CLFS/master.sh index bb9b1cb..7354432 100755 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -1215,9 +1215,10 @@ mk_SUDO: mk_CROSS #---------------CHROOT JAIL mk_SYSTOOLS: mk_SUDO @if [ ! -e \$(MOUNT_PT)/bin ]; then \\ - sudo mkdir \$(MOUNT_PT)/bin; \\ + mkdir \$(MOUNT_PT)/bin; \\ cd \$(MOUNT_PT)/bin && \\ ln -svf /tools/bin/bash bash; ln -sf bash sh; \\ + sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\ fi; @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chroot/082-createfiles @\$(call echo_CHROOT_request) diff --git a/HLFS/master.sh b/HLFS/master.sh index 67c4e5d..657ee17 100755 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -587,9 +587,10 @@ mk_SUDO: mk_LUSER mk_CHROOT: mk_SUDO @if [ ! -e \$(MOUNT_PT)/bin ]; then \\ - sudo mkdir \$(MOUNT_PT)/bin; \\ + mkdir \$(MOUNT_PT)/bin; \\ cd \$(MOUNT_PT)/bin && \\ ln -sf /tools/bin/bash bash; ln -sf bash sh; \\ + sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\ fi; @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/064-createfiles @\$(call echo_CHROOT_request) diff --git a/LFS/master.sh b/LFS/master.sh index 4c4dd6d..3457ded 100755 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -469,9 +469,10 @@ mk_SUDO: mk_LUSER # mk_CHROOT: mk_SUDO @if [ ! -e \$(MOUNT_PT)/bin ]; then \\ - sudo mkdir \$(MOUNT_PT)/bin; \\ + mkdir \$(MOUNT_PT)/bin; \\ cd \$(MOUNT_PT)/bin && \\ ln -sf /tools/bin/bash bash; ln -sf bash sh; \\ + sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\ fi; @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/063-createfiles @\$(call echo_CHROOT_request)