Change method of assigning ownership of /bin.
This commit is contained in:
parent
a9fed6e6d3
commit
928ee4d7d5
3 changed files with 6 additions and 3 deletions
|
@ -1215,9 +1215,10 @@ mk_SUDO: mk_CROSS
|
||||||
#---------------CHROOT JAIL
|
#---------------CHROOT JAIL
|
||||||
mk_SYSTOOLS: mk_SUDO
|
mk_SYSTOOLS: mk_SUDO
|
||||||
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
||||||
sudo mkdir \$(MOUNT_PT)/bin; \\
|
mkdir \$(MOUNT_PT)/bin; \\
|
||||||
cd \$(MOUNT_PT)/bin && \\
|
cd \$(MOUNT_PT)/bin && \\
|
||||||
ln -svf /tools/bin/bash bash; ln -sf bash sh; \\
|
ln -svf /tools/bin/bash bash; ln -sf bash sh; \\
|
||||||
|
sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
|
||||||
fi;
|
fi;
|
||||||
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chroot/082-createfiles
|
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chroot/082-createfiles
|
||||||
@\$(call echo_CHROOT_request)
|
@\$(call echo_CHROOT_request)
|
||||||
|
|
|
@ -587,9 +587,10 @@ mk_SUDO: mk_LUSER
|
||||||
|
|
||||||
mk_CHROOT: mk_SUDO
|
mk_CHROOT: mk_SUDO
|
||||||
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
||||||
sudo mkdir \$(MOUNT_PT)/bin; \\
|
mkdir \$(MOUNT_PT)/bin; \\
|
||||||
cd \$(MOUNT_PT)/bin && \\
|
cd \$(MOUNT_PT)/bin && \\
|
||||||
ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
|
ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
|
||||||
|
sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
|
||||||
fi;
|
fi;
|
||||||
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/064-createfiles
|
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/064-createfiles
|
||||||
@\$(call echo_CHROOT_request)
|
@\$(call echo_CHROOT_request)
|
||||||
|
|
|
@ -469,9 +469,10 @@ mk_SUDO: mk_LUSER
|
||||||
#
|
#
|
||||||
mk_CHROOT: mk_SUDO
|
mk_CHROOT: mk_SUDO
|
||||||
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
|
||||||
sudo mkdir \$(MOUNT_PT)/bin; \\
|
mkdir \$(MOUNT_PT)/bin; \\
|
||||||
cd \$(MOUNT_PT)/bin && \\
|
cd \$(MOUNT_PT)/bin && \\
|
||||||
ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
|
ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
|
||||||
|
sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
|
||||||
fi;
|
fi;
|
||||||
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/063-createfiles
|
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/063-createfiles
|
||||||
@\$(call echo_CHROOT_request)
|
@\$(call echo_CHROOT_request)
|
||||||
|
|
Reference in a new issue