if ! grep -q "chroot" $ROOTFS/etc/profile; then.
echo 'PS1="\[\033]0;chroot: \w\007\]chroot \w\\# "' >> $ROOTFS/etc/profile
fi
export PS1="$PS1\[\033]2;$TERM\007"
export PS1="$PS1\[\033]2;$TERM\007"after the chroot command row (chroot $ROOTFS /bin/sh --login) will bring back things to the original state when you exit from the chroot.
if ! grep -q "chroot" $ROOTFS/etc/profile; thenbefore the chroot row and
echo 'PS1="\[\033]0;chroot: \w\007\]chroot \w\\# "' >> $ROOTFS/etc/profile
fi
PS1="$PS1\[\033]2;$TERM\007"in the end of /etc/profile, i can't find a way to change $PS1 in the terminal from where i run tazdev
It looks like you're new here. If you want to get involved, click one of these buttons!