Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#1
I have scripts that are supposed to run in both chroot mode (within the remastering script) and non-chroot mode.

I've found that the $(logname) yields nothing in chroot mode, so this isn't working out in the chroot vs. non-chroot mode litmus test.

What kind of test can I use in a script that WILL distinguish between chroot mode and non-chroot mode?