On Sep 07, Michael Tokarev <[email protected]> wrote:

deboostrap ... /mnt/
cd /
busybox ash
 mkdir OLD
 mv * OLD/
 mv OLD/mnt/* .

Is there `chroot` here somewhere?
Not relevant: I could have extracted /mnt from an archive as well.
Here I am swapping the current root directory with the one of a newly installed OS tree.

 If yes, regular busybox can be used
there just fine too, you don't need static build of it.  And if chroot
is not there, you can use regular tools from your host system, there's
no need in busybox-static too.
I cannot, because after "mv * OLD/" they will not be there anymore.
(OK, I could run something like "/OLD/lib64/ld-linux-x86-64.so.2 /OLD/bin/mv ..." but it is not very friendly, and when something unexpected happen it will be painful.)

--
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to