RasppleII / a2cloud

Connect your Apple // to the world via Linux
Other
5 stars 2 forks source link

Detect chroot? #32

Closed knghtbrd closed 6 years ago

knghtbrd commented 7 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?

knghtbrd commented 6 years ago

Conclusion: No, this isn't the right way to do it at all. It'd be a bandaid solution at best.