#! /bin/bash # Set the hostname if [ -n $HOSTNAME ]; then echo $HOSTNAME > $target/etc/hostname fi # Bug fix: ecryptfs needs /etc/mtab $ROOTCMD touch /etc/mtab # Create a local admin user $ROOTCMD adduser --disabled-password --gecos "" --shell /bin/bash --encrypt-home fsf 2> /dev/null $ROOTCMD echo -e "fsf\nfsf" | passwd fsf #$ROOTCMD adduser --disabled-password --gecos "" --shell /bin/bash fsf #$ROOTCMD echo -e "fsf\nfsf" | passwd fsf #$ROOTCMD sudo -u fsf -H bash -c "ecryptfs-setup-private -u fsf -l fsf -m ' '"