# brintOS: a machine booted with init=/bin/bash -- brintos.io's choice for any # image that carries bash -- runs no ::sysinit action, so PID 1 mounts the # volatile directories here, before anything else in /etc/bashrc.d starts. The # kernel starts init with HOME=/; root's home is the one passwd names. if [ "$$" = 1 ]; then [ -x /sbin/brintos-volatile ] && /sbin/brintos-volatile h=$(awk -F: '$3 == 0 { print $6; exit }' /etc/passwd) [ -n "$h" ] && [ -d "$h" ] && export HOME="$h" unset h fi