Closed knghtbrd closed 6 years ago
It's possible we want to detect chroot while doing installation via pi-gen or whatever.
Something like this will do that:
isChroot= [[ "$(ls -di / | cut -d ' ' -f 1)" != "2" ]] && isChroot=1
Is this necessary or desirable?
Conclusion: No, this isn't the right way to do it at all. It'd be a bandaid solution at best.
It's possible we want to detect chroot while doing installation via pi-gen or whatever.
Something like this will do that:
Is this necessary or desirable?